Searched refs:sha2_context (Results 1 - 2 of 2) sorted by relevance
/opensolaris-onvv-gate/usr/src/common/crypto/fips/ |
H A D | fips_sha2_util.c | 56 SHA2_CTX *sha2_context; local 58 if ((sha2_context = malloc(sizeof (SHA2_CTX))) == NULL) 63 SHA2Init(SHA256, sha2_context); 67 SHA2Init(SHA384, sha2_context); 71 SHA2Init(SHA512, sha2_context); 75 return (sha2_context); 82 SHA2_CTX *sha2_context; local 84 if ((sha2_context = kmem_zalloc(sizeof (SHA2_CTX), 90 SHA2Init(SHA256, sha2_context); 94 SHA2Init(SHA384, sha2_context); 120 fips_sha2_hash(SHA2_CTX *sha2_context, uchar_t *in, ulong_t inlen, uchar_t *out) argument 605 SHA2_CTX *sha2_context = NULL; local [all...] |
H A D | fips_rsa_util.c | 80 SHA2_CTX *sha2_context = NULL; local 142 sha2_context = fips_sha2_build_context(mechanism); 143 if (sha2_context == NULL) 146 rv = fips_sha2_hash(sha2_context, rsa_known_msg, 168 sha2_context = fips_sha2_build_context(mechanism); 169 if (sha2_context == NULL) 172 rv = fips_sha2_hash(sha2_context, rsa_known_msg, 194 sha2_context = fips_sha2_build_context(mechanism); 195 if (sha2_context == NULL) 198 rv = fips_sha2_hash(sha2_context, rsa_known_ms [all...] |
Completed in 43 milliseconds