Pin : fix tests after rename

This commit is contained in:
ganfra 2023-10-23 10:32:43 +02:00
parent 0e00797e67
commit 0bc992c1ba
3 changed files with 21 additions and 21 deletions

View file

@ -37,7 +37,7 @@ class DefaultPinCodeManager @Inject constructor(
return pinCodeStore.hasPinCode()
}
override suspend fun setupPinCode(pinCode: String) {
override suspend fun createPinCode(pinCode: String) {
val secretKey = secretKeyProvider.getOrCreateKey(SECRET_KEY_ALIAS)
val encryptedPinCode = encryptionDecryptionService.encrypt(secretKey, pinCode.toByteArray()).toBase64()
pinCodeStore.saveEncryptedPinCode(encryptedPinCode)

View file

@ -30,7 +30,7 @@ interface PinCodeManager {
* Creates a new encrypted pin code.
* @param pinCode the clear pin code to create
*/
suspend fun setupPinCode(pinCode: String)
suspend fun createPinCode(pinCode: String)
/**
* @return true if the pin code is correct.