Home
last modified time | relevance | path

Searched refs:sha2type (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal_ext/
A Dcrypto_api.h1158 __STATIC_INLINE int rtl_crypto_sha2(const SHA2_TYPE sha2type, const uint8_t *message, in rtl_crypto_sha2() argument
1161 if (sha2type == MBED_SHA2_224) { in rtl_crypto_sha2()
1163 } else if (sha2type == MBED_SHA2_256) { in rtl_crypto_sha2()
1179 __STATIC_INLINE int rtl_crypto_sha2_init(const SHA2_TYPE sha2type) in rtl_crypto_sha2_init() argument
1181 if (sha2type == MBED_SHA2_224) { in rtl_crypto_sha2_init()
1183 } else if (sha2type == MBED_SHA2_256) { in rtl_crypto_sha2_init()
1217 __STATIC_INLINE int rtl_crypto_hmac_sha2(const SHA2_TYPE sha2type, const uint8_t *message,const uin… in rtl_crypto_hmac_sha2() argument
1220 if (sha2type == MBED_SHA2_224) { in rtl_crypto_hmac_sha2()
1222 } else if (sha2type == MBED_SHA2_256){ in rtl_crypto_hmac_sha2()
1242 if (sha2type == MBED_SHA2_224) { in rtl_crypto_hmac_sha2_init()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/crypto/
A Drtl8721dhp_sha.c156 int rtl_crypto_sha2_init(IN const SHA2_TYPE sha2type) in rtl_crypto_sha2_init() argument
167 switch (sha2type) { in rtl_crypto_sha2_init()
273 int rtl_crypto_sha2(IN const SHA2_TYPE sha2type, IN const u8* message, IN const u32 msglen, in rtl_crypto_sha2() argument
278 ret = rtl_crypto_sha2_init(sha2type); in rtl_crypto_sha2()
477 IN const SHA2_TYPE sha2type, in rtl_crypto_hmac_sha2_init() argument
501 switch (sha2type) { in rtl_crypto_hmac_sha2_init()
621 IN const SHA2_TYPE sha2type, in rtl_crypto_hmac_sha2() argument
628 ret = rtl_crypto_hmac_sha2_init(sha2type, key, keylen); in rtl_crypto_hmac_sha2()
A Drtl8721dhp_crypto_ram.c331 } else if ( pIE->sha2type != SHA2_NONE ) { in CRYPTO_SetCmdBuf()
332 …pCL->hmac_mode = (pIE->sha2type == SHA2_224 )? 2 : 3 ; // currently only support SHA2_224 / SHA2_2… in CRYPTO_SetCmdBuf()
607 pIE->sha2type = SHA2_224; in CRYPTO_SetSecurityModeAD()
610 pIE->sha2type = SHA2_256; in CRYPTO_SetSecurityModeAD()
614 pIE->sha2type = SHA2_NONE; in CRYPTO_SetSecurityModeAD()
618 pIE->sha2type = SHA2_NONE; in CRYPTO_SetSecurityModeAD()
625 pIE->sha2type = SHA2_NONE; in CRYPTO_SetSecurityModeAD()
637 pIE->digestlen = pIE->sha2type; in CRYPTO_SetSecurityModeAD()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/include/
A Drtl8721d_crypto_api.h113 _LONG_CALL_ int rtl_crypto_sha2(IN const SHA2_TYPE sha2type, IN const u8* message, IN const u32 msg…
114 _LONG_CALL_ int rtl_crypto_sha2_init(IN const SHA2_TYPE sha2type);
132 _LONG_CALL_ int rtl_crypto_hmac_sha2(IN const SHA2_TYPE sha2type, IN const u8* message, IN const u3…
134 _LONG_CALL_ int rtl_crypto_hmac_sha2_init(IN const SHA2_TYPE sha2type, IN const u8* key, IN const u…
A Drtl8721d_crypto.h233 u8 sha2type; /*SHA2 type: SHA2_224/SHA2_256 */ member

Completed in 11 milliseconds