Lines Matching defs:from

35  *    endorse or promote products derived from this software without
39 * 5. Products derived from this software may not be called "OpenSSL"
110 * token using the passphrasedialog keyword that we inherit from the parent.
116 static int pk11_RSA_public_encrypt(int flen, const unsigned char *from,
118 static int pk11_RSA_private_encrypt(int flen, const unsigned char *from,
120 static int pk11_RSA_public_decrypt(int flen, const unsigned char *from,
122 static int pk11_RSA_private_decrypt(int flen, const unsigned char *from,
136 static int pk11_RSA_public_encrypt_low(int flen, const unsigned char *from,
138 static int pk11_RSA_private_encrypt_low(int flen, const unsigned char *from,
140 static int pk11_RSA_public_decrypt_low(int flen, const unsigned char *from,
142 static int pk11_RSA_private_decrypt_low(int flen, const unsigned char *from,
203 * so that we can track how many references to the PKCS#11 objects are used from
288 * Remove active list entry from the list and free it.
298 /* remove the entry from the list and free it */
320 /* Free all entries from the active list. */
472 static int pk11_RSA_public_encrypt(int flen, const unsigned char *from,
488 i = RSA_padding_add_PKCS1_type_2(buf, num, from, flen);
492 i = RSA_padding_add_PKCS1_OAEP(buf, num, from, flen, NULL, 0);
496 i = RSA_padding_add_SSLv23(buf, num, from, flen);
499 i = RSA_padding_add_none(buf, num, from, flen);
523 static int pk11_RSA_private_encrypt(int flen, const unsigned char *from,
539 i = RSA_padding_add_PKCS1_type_1(buf, num, from, flen);
542 i = RSA_padding_add_none(buf, num, from, flen);
563 static int pk11_RSA_private_decrypt(int flen, const unsigned char *from,
593 if (BN_bin2bn(from, (int)flen, &f) == NULL)
604 r = pk11_RSA_private_decrypt_low(flen, from, buf, rsa);
651 static int pk11_RSA_public_decrypt(int flen, const unsigned char *from,
678 if (BN_bin2bn(from, flen, &f) == NULL)
689 r = pk11_RSA_public_decrypt_low(flen, from, buf, rsa);
733 const unsigned char *from, unsigned char *to, RSA *rsa)
767 (unsigned char *)from, flen, to, &bytes_encrypted);
790 const unsigned char *from, unsigned char *to, RSA *rsa)
824 (unsigned char *)from, flen, to, &ul_sig_len);
848 const unsigned char *from, unsigned char *to, RSA *rsa)
882 (unsigned char *)from, flen, to, &bytes_decrypted);
905 const unsigned char *from, unsigned char *to, RSA *rsa)
939 (unsigned char *)from, flen, to, &bytes_decrypted);
984 * Standard engine interface function. Majority codes here are from
1227 * Load RSA private key from a file or get its PKCS#11 handle if stored in the
1274 * the token or read them from plain files. It all depends on what is in
1282 /* We will try to access a key from a PKCS#11 token. */
1351 * from the token at all: rsa->(d|p|q|dmp1|dmq1|iqmp).
1405 /* Load RSA public key from a file or load it from the PKCS#11 token. */
1498 * from the token at all: rsa->(d|p|q|dmp1|dmq1|iqmp).
1510 * Create a session object from it so that when calling
1512 * reason why we do that is that we cannot tell from the RSA
1517 * from what we do for the private keystore objects but in that
1518 * case, we can tell from the RSA structure that the keystore
1574 * Get a public key object in a session from a given rsa structure. If the
1579 * We use the session field from sp, and we cache rsa->(n|e) in
1698 * We do not care about the return value from C_DestroyObject()
1724 * are used, 'd' is never extracted from the token in which case it would be
1838 * components from the RSA structure.
1859 * components from the keystore. In that case 'd' was set to NULL and we
1864 * from the keystore then that is not a supported way of usage.
1907 * We do not care about the return value from C_DestroyObject()
2242 * Create a public key object in a session from a given dsa structure.
2344 * We do not care about the return value from C_DestroyObject()
2368 * Create a private key object in the session from a given dsa structure
2475 * We do not care about the return value from C_DestroyObject()
2932 * leading zeros from a computed shared secret. However,
3094 * We do not care about the return value from C_DestroyObject()
3241 * a regression when moving from 0.9.8 to 1.0.0, we use an internal OpenSSL