Skip to content

Commit

Permalink
fix: Revert native HMACSHA512 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Feb 25, 2025
1 parent a39a0a2 commit e379adf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
23 changes: 0 additions & 23 deletions app/core/Encryptor/hmac.test.ts

This file was deleted.

16 changes: 0 additions & 16 deletions app/core/Encryptor/hmac.ts

This file was deleted.

6 changes: 2 additions & 4 deletions app/core/Engine/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ import {
} from '@metamask/eth-ledger-bridge-keyring';
import {
Encryptor,
hmacSha512,
LEGACY_DERIVATION_OPTIONS,
pbkdf2,
} from '../Encryptor';
Expand Down Expand Up @@ -642,7 +641,7 @@ export class Engine {

const hdKeyringBuilder = () =>
new HDKeyring({
cryptographicFunctions: { pbkdf2Sha512: pbkdf2, hmacSha512 },
cryptographicFunctions: { pbkdf2Sha512: pbkdf2 },
});
hdKeyringBuilder.type = HDKeyring.type;
additionalKeyrings.push(hdKeyringBuilder);
Expand Down Expand Up @@ -803,7 +802,7 @@ export class Engine {
origin,
target,
),
getClientCryptography: () => ({ pbkdf2Sha512: pbkdf2, hmacSha512 }),
getClientCryptography: () => ({ pbkdf2Sha512: pbkdf2 }),
};
///: END:ONLY_INCLUDE_IF

Expand Down Expand Up @@ -1088,7 +1087,6 @@ export class Engine {
}),
clientCryptography: {
pbkdf2Sha512: pbkdf2,
hmacSha512,
},
});

Expand Down

0 comments on commit e379adf

Please sign in to comment.