Home
last modified time | relevance | path

Searched refs:SHA2_DER_PREFIX_Len (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/common/crypto/rsa/
H A Drsa_impl.h71 #define SHA2_DER_PREFIX_Len 19 macro
77 extern const CK_BYTE SHA256_DER_PREFIX[SHA2_DER_PREFIX_Len];
78 extern const CK_BYTE SHA384_DER_PREFIX[SHA2_DER_PREFIX_Len];
79 extern const CK_BYTE SHA512_DER_PREFIX[SHA2_DER_PREFIX_Len];
H A Drsa_impl.c68 const CK_BYTE SHA256_DER_PREFIX[SHA2_DER_PREFIX_Len] = {0x30, 0x31, 0x30, 0x0d,
72 const CK_BYTE SHA384_DER_PREFIX[SHA2_DER_PREFIX_Len] = {0x30, 0x41, 0x30, 0x0d,
76 const CK_BYTE SHA512_DER_PREFIX[SHA2_DER_PREFIX_Len] = {0x30, 0x51, 0x30, 0x0d,
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftRSA.c980 CK_BYTE der_data[SHA512_DIGEST_LENGTH + SHA2_DER_PREFIX_Len]; in soft_rsa_digest_sign_common()
1050 SHA2_DER_PREFIX_Len); in soft_rsa_digest_sign_common()
1051 (void) memcpy(der_data + SHA2_DER_PREFIX_Len, hash, hash_len); in soft_rsa_digest_sign_common()
1052 der_data_len = SHA2_DER_PREFIX_Len + hash_len; in soft_rsa_digest_sign_common()
1056 SHA2_DER_PREFIX_Len); in soft_rsa_digest_sign_common()
1057 (void) memcpy(der_data + SHA2_DER_PREFIX_Len, hash, hash_len); in soft_rsa_digest_sign_common()
1058 der_data_len = SHA2_DER_PREFIX_Len + hash_len; in soft_rsa_digest_sign_common()
1062 SHA2_DER_PREFIX_Len); in soft_rsa_digest_sign_common()
1063 (void) memcpy(der_data + SHA2_DER_PREFIX_Len, hash, hash_len); in soft_rsa_digest_sign_common()
1064 der_data_len = SHA2_DER_PREFIX_Len + hash_len; in soft_rsa_digest_sign_common()
[all …]
/titanic_44/usr/src/uts/common/crypto/io/
H A Drsa.c942 uchar_t der_data[SHA512_DIGEST_LENGTH + SHA2_DER_PREFIX_Len]; in rsa_digest_svrfy_common()
1013 bcopy(SHA256_DER_PREFIX, der_data, SHA2_DER_PREFIX_Len); in rsa_digest_svrfy_common()
1014 bcopy(digest, der_data + SHA2_DER_PREFIX_Len, in rsa_digest_svrfy_common()
1016 der_data_len = SHA2_DER_PREFIX_Len + SHA256_DIGEST_LENGTH; in rsa_digest_svrfy_common()
1020 bcopy(SHA384_DER_PREFIX, der_data, SHA2_DER_PREFIX_Len); in rsa_digest_svrfy_common()
1021 bcopy(digest, der_data + SHA2_DER_PREFIX_Len, in rsa_digest_svrfy_common()
1023 der_data_len = SHA2_DER_PREFIX_Len + SHA384_DIGEST_LENGTH; in rsa_digest_svrfy_common()
1027 bcopy(SHA512_DER_PREFIX, der_data, SHA2_DER_PREFIX_Len); in rsa_digest_svrfy_common()
1028 bcopy(digest, der_data + SHA2_DER_PREFIX_Len, in rsa_digest_svrfy_common()
1030 der_data_len = SHA2_DER_PREFIX_Len + SHA512_DIGEST_LENGTH; in rsa_digest_svrfy_common()