MCPcopy Create free account
hub / github.com/AGWA/git-crypt / Aes_ecb_encryptor

Method Aes_ecb_encryptor

crypto-openssl-11.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54Aes_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
62Aes_ecb_encryptor::~Aes_ecb_encryptor ()
63{

Callers

nothing calls this directly

Calls 1

Crypto_errorClass · 0.85

Tested by

no test coverage detected