MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / openssl_cipher

Function openssl_cipher

mlspp/lib/hpke/src/aead_cipher.cpp:134–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133#else
134static const EVP_CIPHER*
135openssl_cipher(AEAD::ID cipher)
136{
137 switch (cipher) {
138 case AEAD::ID::AES_128_GCM:
139 return EVP_aes_128_gcm();
140
141 case AEAD::ID::AES_256_GCM:
142 return EVP_aes_256_gcm();
143
144 case AEAD::ID::CHACHA20_POLY1305:
145 return EVP_chacha20_poly1305();
146
147 default:
148 throw std::runtime_error("Unsupported algorithm");
149 }
150}
151#endif // WITH_BORINGSSL
152
153AEADCipher::AEADCipher(AEAD::ID id_in)

Callers 2

sealMethod · 0.85
openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected