Searched refs:msghash (Results 1 - 5 of 5) sorted by relevance
/external/dropbear/libtomcrypt/src/headers/ |
H A D | tomcrypt_pkcs.h | 57 int pkcs_1_pss_encode(const unsigned char *msghash, unsigned long msghashlen, 63 int pkcs_1_pss_decode(const unsigned char *msghash, unsigned long msghashlen,
|
/external/dropbear/ |
H A D | dss.c | 167 unsigned char msghash[SHA1_HASH_SIZE]; local 191 sha1_done(&hs, msghash); 208 /* let val1 = SHA(M') = msghash */ 209 bytes_to_mp(&val1, msghash, SHA1_HASH_SIZE); 298 unsigned char msghash[SHA1_HASH_SIZE]; local 321 sha1_done(&hs, msghash); 338 sha512_process(&hs, msghash, SHA1_HASH_SIZE); 354 bytes_to_mp(&dss_m, msghash, SHA1_HASH_SIZE);
|
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
H A D | pkcs_1_pss_decode.c | 22 @param msghash The hash to verify 32 int pkcs_1_pss_decode(const unsigned char *msghash, unsigned long msghashlen, argument 42 LTC_ARGCHK(msghash != NULL); 133 /* M = (eight) 0x00 || msghash || salt, mask = H(M) */ 141 if ((err = hash_descriptor[hash_idx].process(&md, msghash, msghashlen)) != CRYPT_OK) {
|
H A D | pkcs_1_pss_encode.c | 22 @param msghash The hash to encode 33 int pkcs_1_pss_encode(const unsigned char *msghash, unsigned long msghashlen, argument 44 LTC_ARGCHK(msghash != NULL); 94 /* M = (eight) 0x00 || msghash || salt, hash = H(M) */ 102 if ((err = hash_descriptor[hash_idx].process(&md, msghash, msghashlen)) != CRYPT_OK) {
|
/external/dropbear/libtomcrypt/ |
H A D | crypt.tex | 3179 const unsigned char *msghash, 3190 This function assumes the message to be PSS encoded has previously been hashed. The input hash \textit{msghash} is of length 3207 const unsigned char *msghash, 3216 This will decode the PSS encoded message in \textit{sig} of length \textit{siglen} and compare it to values in \textit{msghash} of length 3448 const unsigned char *msghash, 3457 and the extracted hash is compared against the message digest pointed to by \textit{msghash} of length \textit{msghashlen} octets. 3459 If the RSA decoded data is not a valid PSS message, or if the PSS decoded hash does not match the \textit{msghash} 3481 and the extracted hash is compared against the message digest pointed to by \textit{msghash} of length \textit{msghashlen} octets. 3483 If the RSA decoded data is not a valid PSS message, or if the PKCS decoded hash does not match the \textit{msghash}
|
Completed in 527 milliseconds