(userRecoveryCodes: Uint8Array[])
| 142 | base64ToBytes(process.env.USER_RECOVERY_CODES_ENCRYPTION_KEY), |
| 143 | ); |
| 144 | export function encryptRecoveryCodes(userRecoveryCodes: Uint8Array[]) { |
| 145 | return _userRecoveryCodesEncryptionKey.encrypt(pack(userRecoveryCodes), { |
| 146 | associatedData: { context: 'UserRecoveryCodes' }, |
| 147 | }); |
| 148 | } |
| 149 | export function decryptRecoveryCodes( |
| 150 | userEncryptedRecoveryCodes: Uint8Array, |
| 151 | ): Uint8Array[] { |
no test coverage detected