Loading ttcn/Security/LibItsSecurity_Functions.ttcn +19 −6 Original line number Diff line number Diff line Loading @@ -151,8 +151,8 @@ module LibItsSecurity_Functions { in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_ephKey, out Oct16 p_tag, out Oct16 p_hmac, out Oct16 p_authentication_vector, out Oct12 p_nonce ) return octetstring { return fx_encryptWithEciesNistp256WithSha256( Loading @@ -161,8 +161,8 @@ module LibItsSecurity_Functions { p_peerPublicKeyY, p_publicEncKeyX, p_publicEncKeyY, p_ephKey, p_tag, p_hmac, p_authentication_vector, p_nonce ); } // End of function f_encryptWithEciesNistp256WithSha256 Loading Loading @@ -1763,6 +1763,19 @@ module LibItsSecurity_Functions { */ external function fx_signWithEcdsaNistp256WithSha256(in Oct32 p_toBeSignedSecuredMessage, in Oct32 p_privateKey) return octetstring; external function fx_test_hmac_sha256(in octetstring p_k, in octetstring p_m) return octetstring; /** * @desc Test function the validate AES128 CCM encryption based on IEEE Std 1609.2-20XX Annex D.6.1 AES-CCM-128 * @return The encrypted test */ external function fx_test_encrypt_aes_128_ccm_test(in octetstring p_k, in octetstring p_n, in octetstring p_pt) return octetstring; /** * @desc Test function the validate AES128 CCM decryption based on IEEE Std 1609.2-20XX Annex D.6.1 AES-CCM-128 * @return The decrypted test */ external function fx_test_decrypt_aes_128_ccm_test(in octetstring p_k, in octetstring p_n, in octetstring p_pt) return octetstring; /** * @desc Produces a Elliptic Curve Digital Encrytion Algorithm (ECIES) encryption * @param p_toBeEncryptedSecuredMessage The data to be encrypted Loading @@ -1770,7 +1783,7 @@ module LibItsSecurity_Functions { * @param p_publicKeyY The public key (Y coordonate) * @return The encrypted value */ external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_ephKey, out Oct16 p_tag, out Oct12 p_nonce) return octetstring; external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_hmac, out Oct16 p_authentication_vector, out Oct12 p_nonce) return octetstring; /** * @desc Produces a Elliptic Curve Digital Encrytion Algorithm (ECIES) decryption Loading Loading
ttcn/Security/LibItsSecurity_Functions.ttcn +19 −6 Original line number Diff line number Diff line Loading @@ -151,8 +151,8 @@ module LibItsSecurity_Functions { in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_ephKey, out Oct16 p_tag, out Oct16 p_hmac, out Oct16 p_authentication_vector, out Oct12 p_nonce ) return octetstring { return fx_encryptWithEciesNistp256WithSha256( Loading @@ -161,8 +161,8 @@ module LibItsSecurity_Functions { p_peerPublicKeyY, p_publicEncKeyX, p_publicEncKeyY, p_ephKey, p_tag, p_hmac, p_authentication_vector, p_nonce ); } // End of function f_encryptWithEciesNistp256WithSha256 Loading Loading @@ -1763,6 +1763,19 @@ module LibItsSecurity_Functions { */ external function fx_signWithEcdsaNistp256WithSha256(in Oct32 p_toBeSignedSecuredMessage, in Oct32 p_privateKey) return octetstring; external function fx_test_hmac_sha256(in octetstring p_k, in octetstring p_m) return octetstring; /** * @desc Test function the validate AES128 CCM encryption based on IEEE Std 1609.2-20XX Annex D.6.1 AES-CCM-128 * @return The encrypted test */ external function fx_test_encrypt_aes_128_ccm_test(in octetstring p_k, in octetstring p_n, in octetstring p_pt) return octetstring; /** * @desc Test function the validate AES128 CCM decryption based on IEEE Std 1609.2-20XX Annex D.6.1 AES-CCM-128 * @return The decrypted test */ external function fx_test_decrypt_aes_128_ccm_test(in octetstring p_k, in octetstring p_n, in octetstring p_pt) return octetstring; /** * @desc Produces a Elliptic Curve Digital Encrytion Algorithm (ECIES) encryption * @param p_toBeEncryptedSecuredMessage The data to be encrypted Loading @@ -1770,7 +1783,7 @@ module LibItsSecurity_Functions { * @param p_publicKeyY The public key (Y coordonate) * @return The encrypted value */ external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_ephKey, out Oct16 p_tag, out Oct12 p_nonce) return octetstring; external function fx_encryptWithEciesNistp256WithSha256(in octetstring p_toBeEncryptedSecuredMessage, in Oct32 p_peerPublicKeyX, in Oct32 p_peerPublicKeyY, out Oct32 p_publicEncKeyX, out Oct32 p_publicEncKeyY, out Oct16 p_hmac, out Oct16 p_authentication_vector, out Oct12 p_nonce) return octetstring; /** * @desc Produces a Elliptic Curve Digital Encrytion Algorithm (ECIES) decryption Loading