/*
* ExchangeKey.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2009/03/01
// 2009/03/05 Modified to pass default flags==CRYPT_EXPORTABLE
#pragma once
#include <sol/crypt/CryptServiceProvider.h>
#include <sol/crypt/KeyPair.h>
/**
try {
CryptServiceProvider csp;
ExchangeKey exchange(csp);
} catch (Exception& ex) {
}
*/
namespace SOL {
class ExchangeKey: public KeyPair {
public:
/**
* Constructor
*/
ExchangeKey(CryptServiceProvider& csp, DWORD flags=CRYPT_EXPORTABLE)
:KeyPair(csp, AT_KEYEXCHANGE, flags) {
}
public:
~ExchangeKey() {
}
};
}
|