/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.h | 140 u8 *c, u32 *clen, u32 modbits, 143 u8 *m, u32 *mlen, u32 modbits); 145 u8 *m, u32 *mlen, u32 modbits); 148 u8 *c, u32 *clen, u32 modbits, const u8 *label, u32 label_len, 152 u8 *m, u32 *mlen, u32 modbits, const u8 *label, u32 label_len, 155 u8 *m, u32 *mlen, u32 modbits, const u8 *label, u32 label_len, 159 u8 *s, u16 *slen, u32 modbits, gen_hash_alg_type rsa_hash_type); 161 … u8 *s, u16 *slen, u32 modbits, gen_hash_alg_type rsa_hash_type); 163 const u8 *s, u16 slen, u32 modbits, gen_hash_alg_type rsa_hash_type); 166 u8 *s, u16 *slen, u32 modbits, [all …]
|
H A D | rsa_tests.h | 27 u32 modbits; member 61 u32 modbits = t->modbits; in perform_rsa_tests() local 94 …ret = rsaes_pkcs1_v1_5_encrypt(&pub, t->m, t->mlen, cipher, &clen, modbits, t->salt, t->saltlen); … in perform_rsa_tests() 102 ret = rsaes_pkcs1_v1_5_decrypt(&priv, t->res, t->reslen, cipher, &clen, modbits); EG(ret, err1); in perform_rsa_tests() 109 …ret = rsaes_pkcs1_v1_5_decrypt_hardened(&priv, &pub, t->res, t->reslen, cipher, &clen, modbits); E… in perform_rsa_tests() 121 …ret = rsaes_oaep_encrypt(&pub, t->m, t->mlen, cipher, &clen, modbits, NULL, 0, t->hash, t->hash, t… in perform_rsa_tests() 129 …ret = rsaes_oaep_decrypt(&priv, t->res, t->reslen, cipher, &clen, modbits, NULL, 0, t->hash, t->ha… in perform_rsa_tests() 136 …ret = rsaes_oaep_decrypt_hardened(&priv, &pub, t->res, t->reslen, cipher, &clen, modbits, NULL, 0,… in perform_rsa_tests() 147 …ret = rsassa_pkcs1_v1_5_verify(&pub, t->m, t->mlen, t->res, (u16)(t->reslen), modbits, t->hash); E… in perform_rsa_tests() 149 … ret = rsassa_pkcs1_v1_5_sign(&priv, t->m, t->mlen, sig, &siglen, modbits, t->hash); EG(ret, err1); in perform_rsa_tests() [all …]
|
H A D | rsa_pkcs1_tests.h | 24 .modbits = 1024, 87 .modbits = 1024, 135 .modbits = 1024, 198 .modbits = 1024, 246 .modbits = 1024, 309 .modbits = 1024, 357 .modbits = 1024, 420 .modbits = 1024, 468 .modbits = 1024, 531 .modbits = 1024, [all …]
|
H A D | rsa.c | 1136 u8 *c, u32 *clen, u32 modbits, in rsaes_pkcs1_v1_5_encrypt() argument 1148 k = BYTECEIL(modbits); in rsaes_pkcs1_v1_5_encrypt() 1203 u8 *m, u32 *mlen, u32 modbits) in _rsaes_pkcs1_v1_5_decrypt() argument 1215 k = BYTECEIL(modbits); in _rsaes_pkcs1_v1_5_decrypt() 1282 u8 *m, u32 *mlen, u32 modbits) in rsaes_pkcs1_v1_5_decrypt() argument 1284 return _rsaes_pkcs1_v1_5_decrypt(priv, NULL, c, clen, m, mlen, modbits); in rsaes_pkcs1_v1_5_decrypt() 1291 u8 *m, u32 *mlen, u32 modbits) in rsaes_pkcs1_v1_5_decrypt_hardened() argument 1293 return _rsaes_pkcs1_v1_5_decrypt(priv, pub, c, clen, m, mlen, modbits); in rsaes_pkcs1_v1_5_decrypt_hardened() 1300 u8 *c, u32 *clen, u32 modbits, const u8 *label, u32 label_len, in rsaes_oaep_encrypt() argument 1329 k = BYTECEIL(modbits); in rsaes_oaep_encrypt() [all …]
|