EncryptRsaOaepErrorCode
EncryptRsaOaepErrorCode
Machine-readable failure reason for encryptRsaOaep.
'invalid_key' when the key is not an RSA-OAEP public key with encrypt usage; 'message_too_long' when the plaintext exceeds the OAEP capacity of the key (modulus bytes − 2 × hash bytes − 2).
ts
type EncryptRsaOaepErrorCode = "invalid_key" | "message_too_long"