rfc3394Keywrap

Encrypt a key under a key encryption key using the algorithm described in RFC 3394

static if(BOTAN_HAS_RFC3394_KEYWRAP)
SecureVector!ubyte
rfc3394Keywrap
()
(
auto const ref SecureVector!ubyte key
,,)

Parameters

key SecureVector!ubyte

the plaintext key to encrypt

kek SymmetricKey

the key encryption key

af AlgorithmFactory

an algorithm factory

Return Value

Type: SecureVector!ubyte

key encrypted under kek

Meta