Searched refs:embits (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.h | 130 ATTRIBUTE_WARN_UNUSED_RET int emsa_pss_encode(const u8 *m, u32 mlen, u8 *em, u32 embits, 135 u32 embits, u16 emlen,
|
H A D | rsa.c | 834 int emsa_pss_encode(const u8 *m, u32 mlen, u8 *em, u32 embits, in emsa_pss_encode() argument 870 emlen = BYTECEIL(embits); in emsa_pss_encode() 881 MUST_HAVE((embits >= ((8*(u32)hlen) + (8*(u32)saltlen) + 9)), ret, err); in emsa_pss_encode() 939 for(i = 0; i < (8 - ((8*emlen) - embits)); i++){ in emsa_pss_encode() 956 u32 embits, u16 emlen, in emsa_pss_verify() argument 999 MUST_HAVE((embits >= ((8*(u32)hlen) + (8*(u32)saltlen) + 9)), ret, err); in emsa_pss_verify() 1002 MUST_HAVE((((embits / 8) + 1) < (u32)((u32)0x1 << 16)), ret, err); in emsa_pss_verify() 1003 _emlen = ((embits % 8) == 0) ? (u16)(embits / 8) : (u16)((embits / 8) + 1); in emsa_pss_verify() 1017 for(i = 0; i < (8 - ((unsigned int)(8*emlen) - embits)); i++){ in emsa_pss_verify()
|