Skip to content

Commit

Permalink
Android: unused pw parameter for authenticating outer HiddenSloth blob (
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdapioneer authored Nov 17, 2023
1 parent ca3e390 commit ea89a66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HiddenSloth internal constructor(

try {
if (authenticateStorage) {
impl.authenticate(namespacedStorage, pw)
impl.authenticate(namespacedStorage)
}
return impl.prepareCachedSecrets(namespacedStorage, pw)
} catch (e: AEADBadTagException) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ class HiddenSlothImpl(
}

/**
* Authenticates the ciphertext stored in [storage] using the password [pw]. If the password
* does not unlock the storage, an [AEADBadTagException] exception is thrown.
* Authenticates the ciphertext stored in [storage] key stored in the secure element. If the
* storage blob does not authenticate, an [AEADBadTagException] is thrown.
*/
@Throws(AEADBadTagException::class)
fun authenticate(storage: ReadableStorage, pw: String) {
fun authenticate(storage: ReadableStorage) {
val hDems = KeyHandle(storage.get("hDems"))
val seIv = storage.get("seIv")

Expand Down

0 comments on commit ea89a66

Please sign in to comment.