laforge has submitted this change. ( https://gerrit.osmocom.org/c/onomondo-eim/+/43613?usp=email )
Change subject: crypto_utils: fix sourcecode formatting ......................................................................
crypto_utils: fix sourcecode formatting
Related: SYS#8100 Change-Id: Ie4d6b4d44a015e97606f6ca6e01398bcf385f542 --- M src/crypto_utils.erl 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/src/crypto_utils.erl b/src/crypto_utils.erl index 4a43407..49f5a25 100644 --- a/src/crypto_utils.erl +++ b/src/crypto_utils.erl @@ -40,7 +40,7 @@ % Read the AssociationToken {ok, AssociationToken} = mnesia_db_euicc:state_get(EidValue, associationToken),
- %Format message to be signed + % Format message to be signed {ok, EuiccPackageSignedEnc} = 'SGP32Definitions':encode( 'EuiccPackageSigned', EuiccPackageSigned ), @@ -48,13 +48,13 @@ EuiccPackageSignedEnc, enc_association_token(AssociationToken) ]),
- %Load private key from eIM certificate + % Load private key from eIM certificate {ok, EimKeyPath} = utils:get_env_priv_file_path(onomondo_eim, eim_key), {ok, EimKeyPem} = file:read_file(EimKeyPath), [EimKeyPemEntry] = public_key:pem_decode(EimKeyPem), EimKeyECPrivateKey = public_key:pem_entry_decode(EimKeyPemEntry),
- %Sign message + % Sign message % We use SHA-256 as signature hash/digest, see also GSMA SGP.22, section 2.6.5 and % https://www.erlang.org/doc/apps/public_key/public_key#sign/4 der_to_plain(public_key:sign(MsgToBeSigned, sha256, EimKeyECPrivateKey)).