Home
last modified time | relevance | path

Searched refs:emlen (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_oaep.c62 int i, emlen = tlen - 1; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() local
86 if (flen > emlen - 2 * mdlen - 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
91 if (emlen < 2 * mdlen + 1) { in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
105 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
107 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
108 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
113 dbmask_len = emlen - mdlen; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
/freebsd/crypto/libecc/src/examples/sig/rsa/
H A Drsa.c852 u32 emlen, dblen, pslen; in emsa_pss_encode() local
870 emlen = BYTECEIL(embits); in emsa_pss_encode()
871 MUST_HAVE((emlen < (u32)((u32)0x1 << 16)), ret, err); in emsa_pss_encode()
874 MUST_HAVE(((*eminlen) >= emlen), ret, err); in emsa_pss_encode()
884 MUST_HAVE((emlen >= ((u32)hlen + (u32)saltlen + 2)), ret, err); in emsa_pss_encode()
913 dblen = (emlen - hlen - 1); in emsa_pss_encode()
939 for(i = 0; i < (8 - ((8*emlen) - embits)); i++){ in emsa_pss_encode()
945 em[emlen - 1] = 0xbc; in emsa_pss_encode()
946 (*eminlen) = (u16)emlen; in emsa_pss_encode()
956 u32 embits, u16 emlen, in emsa_pss_verify() argument
[all …]
H A Drsa.h128 ATTRIBUTE_WARN_UNUSED_RET int emsa_pkcs1_v1_5_encode(const u8 *m, u32 mlen, u8 *em, u16 emlen,
135 u32 embits, u16 emlen,