Lines Matching refs:flen
24 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from,
26 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from,
28 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from,
30 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from,
99 static int rsa_ossl_public_encrypt(int flen, const unsigned char *from, in rsa_ossl_public_encrypt() argument
138 from, flen); in rsa_ossl_public_encrypt()
142 from, flen, NULL, 0, in rsa_ossl_public_encrypt()
146 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_public_encrypt()
304 static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, in rsa_ossl_private_encrypt() argument
332 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen); in rsa_ossl_private_encrypt()
335 i = RSA_padding_add_X931(buf, num, from, flen); in rsa_ossl_private_encrypt()
338 i = RSA_padding_add_none(buf, num, from, flen); in rsa_ossl_private_encrypt()
434 static int derive_kdk(int flen, const unsigned char *from, RSA *rsa, in derive_kdk() argument
494 if (flen < num) { in derive_kdk()
495 memset(buf, 0, num - flen); in derive_kdk()
496 if (HMAC_Update(hmac, buf, num - flen) <= 0) { in derive_kdk()
501 if (HMAC_Update(hmac, from, flen) <= 0) { in derive_kdk()
519 static int rsa_ossl_private_decrypt(int flen, const unsigned char *from, in rsa_ossl_private_decrypt() argument
560 if (flen > num) { in rsa_ossl_private_decrypt()
565 if (flen < 1) { in rsa_ossl_private_decrypt()
571 if (BN_bin2bn(from, (int)flen, f) == NULL) in rsa_ossl_private_decrypt()
663 if (derive_kdk(flen, from, rsa, buf, num, kdk) == 0) in rsa_ossl_private_decrypt()
706 static int rsa_ossl_public_decrypt(int flen, const unsigned char *from, in rsa_ossl_public_decrypt() argument
750 if (flen > num) { in rsa_ossl_public_decrypt()
755 if (BN_bin2bn(from, flen, f) == NULL) in rsa_ossl_public_decrypt()