| 52 | }; |
| 53 | |
| 54 | Aes_ecb_encryptor::Aes_ecb_encryptor (const unsigned char* raw_key) |
| 55 | : impl(new Aes_impl) |
| 56 | { |
| 57 | if (AES_set_encrypt_key(raw_key, KEY_LEN * 8, &(impl->key)) != 0) { |
| 58 | throw Crypto_error("Aes_ctr_encryptor::Aes_ctr_encryptor", "AES_set_encrypt_key failed"); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | Aes_ecb_encryptor::~Aes_ecb_encryptor () |
| 63 | { |
nothing calls this directly
no test coverage detected