( userEncryptedRecoveryCodes: Uint8Array, )
| 147 | }); |
| 148 | } |
| 149 | export function decryptRecoveryCodes( |
| 150 | userEncryptedRecoveryCodes: Uint8Array, |
| 151 | ): Uint8Array[] { |
| 152 | return unpack( |
| 153 | _userRecoveryCodesEncryptionKey.decrypt(userEncryptedRecoveryCodes, { |
| 154 | associatedData: { context: 'UserRecoveryCodes' }, |
| 155 | }), |
| 156 | ); |
| 157 | } |
| 158 | |
| 159 | export function hashRecoveryCode( |
| 160 | recoveryCode: string, |
no test coverage detected