Commit 9779f3a 1 parent 0153257 commit 9779f3a Copy full SHA for 9779f3a
File tree 1 file changed +4
-8
lines changed
packages/mosip-api/src/java-mediator-interop
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,10 @@ export function encryptAndSignPacket(
24
24
credentialPartnerCertificate ,
25
25
) . publicKey as forge . pki . rsa . PublicKey ;
26
26
27
- console . log ( "credentialPartnerPrivateKey" , credentialPartnerPrivateKey ) ;
28
- console . log ( "credentialPartnerCertificate" , credentialPartnerCertificate ) ;
29
-
30
- const symmetricKey : string = forge . random . getBytesSync ( SYMMETRIC_KEY_SIZE ) ;
31
- const nonce : string = forge . random . getBytesSync ( NONCE_SIZE ) ;
32
- const aad : string = forge . random . getBytesSync ( AAD_SIZE - NONCE_SIZE ) ;
33
- // putting random thumbprint temporarily
34
- const thumbprint : string = forge . random . getBytesSync ( THUMBPRINT_LENGTH ) ;
27
+ const symmetricKey : string = "A" . repeat ( SYMMETRIC_KEY_SIZE ) ;
28
+ const nonce : string = "B" . repeat ( NONCE_SIZE ) ;
29
+ const aad : string = "C" . repeat ( AAD_SIZE - NONCE_SIZE ) ;
30
+ const thumbprint : string = "D" . repeat ( THUMBPRINT_LENGTH ) ;
35
31
36
32
const encryptedSymmetricKey : string = mosipPublicKey . encrypt (
37
33
symmetricKey ,
You can’t perform that action at this time.
0 commit comments