Method Nettle.BlockCipher16()->State()->wrap_key()
- Method
wrap_key
 string(8bit)wrap_key(string(8bit)key,bool|voidmethod)- Description
 - Parameter 
key Key to wrap.
- Parameter 
method Method to use to wrap the key. One of:
0RFC 3394 This algorithm is intended to be used to encode encryption keys which are a multiple of 8 bytes and at least 16 bytes long. This is the default method.
1RFC 5649 This algorithm is similar to the above, but supports keys of any length and has an intentionally not compatible result.
- Returns
 Returns the wrapped key.
- Note
 Assumes that the State object has been initialized to encryption mode (ie that set_encrypt_key() has been called).
- Note
 RFC 6931 section 2.6.3 indicates that the RFC 3394 algorithm is also appropriate for
Camellia.- See also