Hello
I tried version from main branch
And got an error during encryption process
-CryptoKitError
- underlyingCoreCryptoError : 1 element
- error : -7
Code
let privateKey = P256.KeyAgreement.PrivateKey()
let publicKey = privateKey.publicKey
let header: JOSEHeader = .init(algorithm: .ecdh1PUA256KW, encryptionAlgorithm: .a256CBCHS512)
try JWE.encrypt(
plaintext: "Test".data(using: .utf8)!,
to: publicKey.jwkRepresentation,
from: privateKey.jwkRepresentation,
protectedHeader: header)
We got this issue here
encryptedKey = try AES.KeyWrap.wrap(.init(data: contentEncryptionKey), using: .init(data: keyEncryptionKey))
When we are trying to create encryptedKey for receiver.
Hello
I tried version from main branch
And got an error during encryption process
Code
We got this issue here
encryptedKey = try AES.KeyWrap.wrap(.init(data: contentEncryptionKey), using: .init(data: keyEncryptionKey))When we are trying to create
encryptedKeyfor receiver.