wrap(_:using:)
Wraps a key using the AES wrap algorithm.
Declaration
static func wrap(_ keyToWrap: SymmetricKey, using kek: SymmetricKey) throws -> DataParameters
- keyToWrap:
The key to wrap.
- kek:
The key encryption key.
Return Value
The wrapped key.
Discussion
Wrap is an implementation of the AES key wrap algorithm as specified in IETF RFC 3394.