Searched refs:rsa (Results 1 – 6 of 6) sorted by relevance
| /developtools/hdc/src/common/ |
| D | auth.cpp | 44 int AuthSign(void *rsa, const unsigned char *token, size_t tokenSize, void *sig) 68 int RSA2RSAPublicKey(RSA *rsa, RSAPublicKey *publicKey) in RSA2RSAPublicKey() argument 81 BN_copy(n, rsa->n); in RSA2RSAPublicKey() 82 publicKey->exponent = BN_get_word(rsa->e); in RSA2RSAPublicKey() 86 BIGNUM *n = (BIGNUM *)RSA_get0_n(rsa); in RSA2RSAPublicKey() 87 publicKey->exponent = BN_get_word(RSA_get0_e(rsa)); in RSA2RSAPublicKey() 90 BN_copy(n, rsa->n); in RSA2RSAPublicKey() 91 publicKey->exponent = BN_get_word(rsa->e); in RSA2RSAPublicKey() 96 if (RSA_size(rsa) != RSANUMBYTES) { in RSA2RSAPublicKey() 176 RSA *rsa = RSA_new(); in GenerateKey() local [all …]
|
| D | auth.h | 34 int AuthSign(void *rsa, const unsigned char *token, size_t tokenSize, void *sig);
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | auth.rs | 29 use openssl::rsa::{Padding, Rsa}; 38 let rsa = load_or_create_prikey()?; in handshake_with_daemon() localVariable 67 let pubkey_pem = get_pubkey_pem(&rsa)?; in handshake_with_daemon() 73 handshake.buf = get_signature_b64(&rsa, recv.buf)?; in handshake_with_daemon() 119 fn get_pubkey_pem(rsa: &Rsa<openssl::pkey::Private>) -> io::Result<String> { in get_pubkey_pem() 120 if let Ok(pubkey) = rsa.public_key_to_pem() { in get_pubkey_pem() 137 fn get_signature_b64(rsa: &Rsa<openssl::pkey::Private>, plain: String) -> io::Result<String> { in get_signature_b64() 139 match rsa.private_encrypt(plain.as_bytes(), &mut enc, Padding::PKCS1) { in get_signature_b64()
|
| /developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/ |
| D | requirements.txt | 14 rsa==4.0
|
| /developtools/hdc/hdc_rust/src/daemon/ |
| D | auth.rs | 24 use openssl::rsa::{Padding, Rsa}; 340 let rsa = if let Ok(cipher) = Rsa::public_key_from_pem(pubkey.as_bytes()) { in validate_signature() localVariable 347 let dec_size = rsa in validate_signature()
|
| /developtools/smartperf_host/ide/server/ |
| D | main.go | 105 pk, _ := rsa.GenerateKey(rand.Reader, 1024)
|