/dports/security/botan110/Botan-1.10.17/src/wrap/python/ |
H A D | rsa.cpp | 34 ~Py_RSA_PrivateKey() { delete rsa_key; } in ~Py_RSA_PrivateKey() 38 return PKCS8::PEM_encode(*rsa_key); in to_string() 62 RSA_PrivateKey* rsa_key; member in Py_RSA_PrivateKey 68 PK_Decryptor_EME dec(*rsa_key, padding); in decrypt() 79 PK_Signer sign(*rsa_key, padding); in sign() 102 if(!rsa_key) in Py_RSA_PrivateKey() 119 if(!rsa_key) in Py_RSA_PrivateKey() 138 return X509::PEM_encode(*rsa_key); in to_string() 157 RSA_PublicKey* rsa_key; member in Py_RSA_PublicKey 172 if(!rsa_key) in Py_RSA_PublicKey() [all …]
|
/dports/security/s2n/s2n-tls-1.1.2/crypto/ |
H A D | s2n_rsa.c | 52 const struct s2n_rsa_key *rsa_key = &key->key.rsa_key; in s2n_rsa_encrypted_size() local 53 RESULT_ENSURE_REF(rsa_key->rsa); in s2n_rsa_encrypted_size() 56 const int size = RSA_size(rsa_key->rsa); in s2n_rsa_encrypted_size() 152 struct s2n_rsa_key *rsa_key = &pkey->key.rsa_key; in s2n_rsa_key_free() local 153 if (rsa_key->rsa == NULL) { return 0; } in s2n_rsa_key_free() 155 RSA_free(rsa_key->rsa); in s2n_rsa_key_free() 156 rsa_key->rsa = NULL; in s2n_rsa_key_free() 163 const struct s2n_rsa_key *rsa_key = &pkey->key.rsa_key; in s2n_rsa_check_key_exists() local 164 POSIX_ENSURE_REF(rsa_key->rsa); in s2n_rsa_check_key_exists() 173 rsa_key->rsa = rsa; in s2n_evp_pkey_to_rsa_public_key() [all …]
|
/dports/security/rnp/rnp-0.15.2/src/lib/crypto/ |
H A D | rsa.cpp | 201 botan_pubkey_t rsa_key = NULL; in rsa_encrypt_pkcs1() local 204 if (!rsa_load_public_key(&rsa_key, key)) { in rsa_encrypt_pkcs1() 221 botan_pubkey_destroy(rsa_key); in rsa_encrypt_pkcs1() 233 botan_pubkey_t rsa_key = NULL; in rsa_verify_pkcs1() local 262 botan_pubkey_destroy(rsa_key); in rsa_verify_pkcs1() 275 botan_privkey_t rsa_key; in rsa_sign_pkcs1() local 310 botan_privkey_destroy(rsa_key); in rsa_sign_pkcs1() 321 botan_privkey_t rsa_key = NULL; in rsa_decrypt_pkcs1() local 345 botan_privkey_destroy(rsa_key); in rsa_decrypt_pkcs1() 357 botan_privkey_t rsa_key = NULL; in rsa_generate() local [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/rnp/src/lib/crypto/ |
H A D | rsa.cpp | 202 botan_pubkey_t rsa_key = NULL; in rsa_encrypt_pkcs1() local 205 if (!rsa_load_public_key(&rsa_key, key)) { in rsa_encrypt_pkcs1() 222 botan_pubkey_destroy(rsa_key); in rsa_encrypt_pkcs1() 234 botan_pubkey_t rsa_key = NULL; in rsa_verify_pkcs1() local 263 botan_pubkey_destroy(rsa_key); in rsa_verify_pkcs1() 276 botan_privkey_t rsa_key; in rsa_sign_pkcs1() local 311 botan_privkey_destroy(rsa_key); in rsa_sign_pkcs1() 322 botan_privkey_t rsa_key = NULL; in rsa_decrypt_pkcs1() local 346 botan_privkey_destroy(rsa_key); in rsa_decrypt_pkcs1() 358 botan_privkey_t rsa_key = NULL; in rsa_generate() local [all …]
|
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-cubieboard2/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-cubieboard/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/crypto/ |
H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() 139 struct rsa_key *key = context; in rsa_get_qinv() 162 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 165 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-a13-olinuxino/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-sinovoip-bpi-m3/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-sopine/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-rpi/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/crypto/ |
H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() 139 struct rsa_key *key = context; in rsa_get_qinv() 162 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 165 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-nanopi-r4s/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-nanopi-m1plus/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-nanopi-neo/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-nanopi-neo-air/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/crypto/ |
H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() 79 struct rsa_key *key = context; in rsa_get_p() 94 struct rsa_key *key = context; in rsa_get_q() 109 struct rsa_key *key = context; in rsa_get_dp() 124 struct rsa_key *key = context; in rsa_get_dq() 139 struct rsa_key *key = context; in rsa_get_qinv() 162 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 165 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-chip/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-beaglebone/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-wandboard/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|
/dports/sysutils/u-boot-clearfog/u-boot-2021.07/lib/crypto/ |
H A D | rsa_helper.c | 26 struct rsa_key *key = context; in rsa_get_n() 60 struct rsa_key *key = context; in rsa_get_e() 75 struct rsa_key *key = context; in rsa_get_d() 90 struct rsa_key *key = context; in rsa_get_p() 105 struct rsa_key *key = context; in rsa_get_q() 120 struct rsa_key *key = context; in rsa_get_dp() 135 struct rsa_key *key = context; in rsa_get_dq() 150 struct rsa_key *key = context; in rsa_get_qinv() 173 int rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, in rsa_parse_pub_key() argument 176 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key() [all …]
|