Home
last modified time | relevance | path

Searched defs:key (Results 1 – 25 of 93) sorted by relevance

1234

/crypto/test/
A Dfile_test.cc73 std::string key, value; in ParseKeyValue() local
86 for (const std::string &key : unused_attributes_) { in ReadNext() local
92 for (const std::string &key : unused_instructions_) { in ReadNext() local
188 std::string key, value; in ReadNext() local
205 std::string key, value; in ReadNext() local
252 bool FileTest::HasAttribute(const std::string &key) { in HasAttribute()
275 bool FileTest::HasInstruction(const std::string &key) { in HasInstruction()
303 const std::string &key) { in GetInstructionBytes()
333 void FileTest::OnKeyUsed(const std::string &key) { in OnKeyUsed()
337 void FileTest::OnInstructionUsed(const std::string &key) { in OnInstructionUsed()
[all …]
/crypto/evp/
A Dp_x25519_asn1.cc37 X25519_KEY *key = in x25519_set_priv_raw() local
58 X25519_KEY *key = in x25519_set_pub_raw() local
74 const X25519_KEY *key = reinterpret_cast<X25519_KEY *>(pkey->pkey); in x25519_get_priv_raw() local
97 const X25519_KEY *key = reinterpret_cast<X25519_KEY *>(pkey->pkey); in x25519_get_pub_raw() local
120 const X25519_KEY *key = reinterpret_cast<X25519_KEY *>(pkey->pkey); in x25519_get1_tls_encodedpoint() local
130 static int x25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in x25519_pub_decode()
143 const X25519_KEY *key = reinterpret_cast<X25519_KEY *>(pkey->pkey); in x25519_pub_encode() local
168 static int x25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in x25519_priv_decode()
184 const X25519_KEY *key = reinterpret_cast<const X25519_KEY *>(pkey->pkey); in x25519_priv_encode() local
A Dp_ed25519_asn1.cc37 ED25519_KEY *key = in ed25519_set_priv_raw() local
60 ED25519_KEY *key = in ed25519_set_pub_raw() local
76 const ED25519_KEY *key = reinterpret_cast<const ED25519_KEY *>(pkey->pkey); in ed25519_get_priv_raw() local
100 const ED25519_KEY *key = reinterpret_cast<const ED25519_KEY *>(pkey->pkey); in ed25519_get_pub_raw() local
116 static int ed25519_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in ed25519_pub_decode()
129 const ED25519_KEY *key = reinterpret_cast<const ED25519_KEY *>(pkey->pkey); in ed25519_pub_encode() local
156 static int ed25519_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in ed25519_priv_decode()
172 const ED25519_KEY *key = reinterpret_cast<const ED25519_KEY *>(pkey->pkey); in ed25519_priv_encode() local
A Dp_rsa_asn1.cc28 static int rsa_pub_encode(CBB *out, const EVP_PKEY *key) { in rsa_pub_encode()
48 static int rsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in rsa_pub_decode()
77 static int rsa_priv_encode(CBB *out, const EVP_PKEY *key) { in rsa_priv_encode()
96 static int rsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in rsa_priv_decode()
170 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) { in EVP_PKEY_set1_RSA()
178 int EVP_PKEY_assign_RSA(EVP_PKEY *pkey, RSA *key) { in EVP_PKEY_assign_RSA()
A Dpbkdf_test.cc30 uint8_t key[sizeof(kKey)]; in TEST() local
48 uint8_t key[sizeof(kKey)]; in TEST() local
70 uint8_t key[sizeof(kKey1)]; in TEST() local
106 uint8_t key[sizeof(kKey2)]; in TEST() local
132 uint8_t key[10] = {0}; in TEST() local
A Dp_dsa_asn1.cc27 static int dsa_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in dsa_pub_decode()
53 static int dsa_pub_encode(CBB *out, const EVP_PKEY *key) { in dsa_pub_encode()
75 static int dsa_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in dsa_priv_decode()
115 static int dsa_priv_encode(CBB *out, const EVP_PKEY *key) { in dsa_priv_encode()
245 int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) { in EVP_PKEY_set1_DSA()
253 int EVP_PKEY_assign_DSA(EVP_PKEY *pkey, DSA *key) { in EVP_PKEY_assign_DSA()
A Dp_ec_asn1.cc28 static int eckey_pub_encode(CBB *out, const EVP_PKEY *key) { in eckey_pub_encode()
52 static int eckey_pub_decode(EVP_PKEY *out, CBS *params, CBS *key) { in eckey_pub_decode()
89 static int eckey_priv_decode(EVP_PKEY *out, CBS *params, CBS *key) { in eckey_priv_decode()
108 static int eckey_priv_encode(CBB *out, const EVP_PKEY *key) { in eckey_priv_encode()
259 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_set1_EC_KEY()
267 int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) { in EVP_PKEY_assign_EC_KEY()
A Devp_asn1.cc58 CBS spki, algorithm, key; in EVP_parse_public_key() local
99 int EVP_marshal_public_key(CBB *cbb, const EVP_PKEY *key) { in EVP_marshal_public_key()
110 CBS pkcs8, algorithm, key; in EVP_parse_private_key() local
147 int EVP_marshal_private_key(CBB *cbb, const EVP_PKEY *key) { in EVP_marshal_private_key()
281 int i2d_PublicKey(const EVP_PKEY *key, uint8_t **outp) { in i2d_PublicKey()
A Dp_ed25519.cc28 ED25519_KEY *key = in pkey_ed25519_keygen() local
48 const ED25519_KEY *key = in pkey_ed25519_sign_message() local
76 const ED25519_KEY *key = in pkey_ed25519_verify_message() local
/crypto/fipsmodule/aes/
A Dinternal.h133 AES_KEY *key) { in aes_hw_set_encrypt_key()
138 AES_KEY *key) { in aes_hw_set_decrypt_key()
143 const AES_KEY *key) { in aes_hw_encrypt()
148 const AES_KEY *key) { in aes_hw_decrypt()
153 const AES_KEY *key, uint8_t *ivec, int enc) { in aes_hw_cbc_encrypt()
158 size_t len, const AES_KEY *key, in aes_hw_ctr32_encrypt_blocks()
195 size_t len, const AES_KEY *key, in bsaes_ctr32_encrypt_blocks()
233 AES_KEY *key) { in vpaes_set_encrypt_key()
237 AES_KEY *key) { in vpaes_set_decrypt_key()
247 const AES_KEY *key, uint8_t *ivec, int enc) { in vpaes_cbc_encrypt()
[all …]
A Daes_test.cc37 std::vector<uint8_t> key, plaintext, ciphertext; in TestRaw() local
79 std::vector<uint8_t> key, plaintext, ciphertext; in TestKeyWrap() local
128 std::vector<uint8_t> key, plaintext, ciphertext; in TestKeyWrapWithPadding() local
172 std::vector<uint8_t> ct, key, msg; in TEST() local
210 std::vector<uint8_t> ct, key, msg; in TEST() local
251 uint8_t key[128/8] = {0}; in TEST() local
269 AES_KEY key; in TEST() local
279 AES_KEY key; in TEST() local
378 static Bytes AESKeyToBytes(const AES_KEY *key) { in AESKeyToBytes()
418 static int aes_ref_set_encrypt_key(const uint8_t *key, int key_bits, in aes_ref_set_encrypt_key()
[all …]
/crypto/hpke/
A Dhpke.cc164 static int x25519_generate_key(EVP_HPKE_KEY *key) { in x25519_generate_key()
231 const EVP_HPKE_KEY *key, uint8_t *out_shared_secret, in x25519_auth_encap_with_seed()
270 static int x25519_auth_decap(const EVP_HPKE_KEY *key, in x25519_auth_decap()
405 static int p256_generate_key(EVP_HPKE_KEY *key) { in p256_generate_key()
516 const EVP_HPKE_KEY *key, uint8_t *out_shared_secret, in p256_auth_encap_with_seed()
633 static int xwing_generate_key(EVP_HPKE_KEY *key) { in xwing_generate_key()
733 void EVP_HPKE_KEY_zero(EVP_HPKE_KEY *key) { in EVP_HPKE_KEY_zero()
737 void EVP_HPKE_KEY_cleanup(EVP_HPKE_KEY *key) { in EVP_HPKE_KEY_cleanup()
743 EVP_HPKE_KEY *key = in EVP_HPKE_KEY_new() local
752 void EVP_HPKE_KEY_free(EVP_HPKE_KEY *key) { in EVP_HPKE_KEY_free()
[all …]
A Dhpke_test.cc115 const EVP_HPKE_KEY *key = base_key.get(); in Verify() local
290 bool FileTestReadInt(FileTest *file_test, T *out, const std::string &key) { in FileTestReadInt()
375 ScopedEVP_HPKE_KEY key; in TEST() local
487 ScopedEVP_HPKE_KEY key; in TEST() local
533 ScopedEVP_HPKE_KEY key; in TEST() local
613 ScopedEVP_HPKE_KEY key; in TEST() local
644 ScopedEVP_HPKE_KEY key; in TEST() local
651 ScopedEVP_HPKE_KEY key; in TEST() local
/crypto/fipsmodule/ec/
A Dec_test.cc173 bssl::UniquePtr<EC_KEY> key = in TEST() local
206 bssl::UniquePtr<EC_KEY> key = in TEST() local
263 bssl::UniquePtr<EC_KEY> key = in TEST() local
431 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
469 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
546 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(GetParam())); in TEST_P() local
588 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(GetParam())); in TEST_P() local
668 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(GetParam())); in TEST_P() local
674 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(GetParam())); in TEST_P() local
997 static const EC_GROUP *GetCurve(FileTest *t, const char *key) { in GetCurve()
[all …]
/crypto/pkcs8/
A Dpkcs12_test.cc45 EVP_PKEY *key = nullptr; in TestImpl() local
74 EVP_PKEY *key = nullptr; in TestCompat() local
157 EVP_PKEY *key = nullptr; in TEST() local
314 bssl::UniquePtr<EVP_PKEY> key; in TestRoundTrip() local
472 static bssl::UniquePtr<X509> MakeTestCert(EVP_PKEY *key) { in MakeTestCert()
529 EVP_PKEY *key = nullptr; in ExpectPKCS12Parse() local
607 bssl::UniquePtr<EVP_PKEY> key = MakeTestKey(); in TEST() local
662 EVP_PKEY *key = nullptr; in TEST() local
670 EVP_PKEY *key = nullptr; in TEST() local
678 EVP_PKEY *key = nullptr; in TEST() local
/crypto/trust_token/
A Dtrust_token.cc228 const uint8_t *key, size_t key_len) { in TRUST_TOKEN_CLIENT_add_key()
251 int TRUST_TOKEN_CLIENT_set_srr_key(TRUST_TOKEN_CLIENT *ctx, EVP_PKEY *key) { in TRUST_TOKEN_CLIENT_set_srr_key()
323 const struct trust_token_client_key_st *key = NULL; in STACK_OF() local
463 int TRUST_TOKEN_ISSUER_add_key(TRUST_TOKEN_ISSUER *ctx, const uint8_t *key, in TRUST_TOKEN_ISSUER_add_key()
487 int TRUST_TOKEN_ISSUER_set_srr_key(TRUST_TOKEN_ISSUER *ctx, EVP_PKEY *key) { in TRUST_TOKEN_ISSUER_set_srr_key()
495 const uint8_t *key, size_t len) { in TRUST_TOKEN_ISSUER_set_metadata_key()
528 const struct trust_token_issuer_key_st *key = in TRUST_TOKEN_ISSUER_issue() local
599 const struct trust_token_issuer_key_st *key = in trust_token_issuer_redeem_impl() local
664 static uint8_t get_metadata_obfuscator(const uint8_t *key, size_t key_len, in get_metadata_obfuscator()
677 uint8_t *out_value, const uint8_t *key, in TRUST_TOKEN_decode_private_metadata()
A Dvoprf.cc166 TRUST_TOKEN_CLIENT_KEY *key, in voprf_client_key_from_bytes()
178 TRUST_TOKEN_ISSUER_KEY *key, in voprf_issuer_key_from_bytes()
842 const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, in voprf_sign_impl()
1060 const TRUST_TOKEN_ISSUER_KEY *key, in voprf_read()
1132 int voprf_exp2_client_key_from_bytes(TRUST_TOKEN_CLIENT_KEY *key, in voprf_exp2_client_key_from_bytes()
1137 int voprf_exp2_issuer_key_from_bytes(TRUST_TOKEN_ISSUER_KEY *key, in voprf_exp2_issuer_key_from_bytes()
1150 int voprf_exp2_sign(const TRUST_TOKEN_ISSUER_KEY *key, CBB *cbb, CBS *cbs, in voprf_exp2_sign()
1168 int voprf_exp2_read(const TRUST_TOKEN_ISSUER_KEY *key, in voprf_exp2_read()
1208 int voprf_pst1_client_key_from_bytes(TRUST_TOKEN_CLIENT_KEY *key, in voprf_pst1_client_key_from_bytes()
1213 int voprf_pst1_issuer_key_from_bytes(TRUST_TOKEN_ISSUER_KEY *key, in voprf_pst1_issuer_key_from_bytes()
[all …]
A Dpmbtoken.cc263 TRUST_TOKEN_CLIENT_KEY *key, in pmbtoken_client_key_from_bytes()
282 TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_issuer_key_from_bytes()
1067 const TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_read()
1242 int pmbtoken_exp1_client_key_from_bytes(TRUST_TOKEN_CLIENT_KEY *key, in pmbtoken_exp1_client_key_from_bytes()
1250 int pmbtoken_exp1_issuer_key_from_bytes(TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_exp1_issuer_key_from_bytes()
1290 int pmbtoken_exp1_read(const TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_exp1_read()
1414 int pmbtoken_exp2_client_key_from_bytes(TRUST_TOKEN_CLIENT_KEY *key, in pmbtoken_exp2_client_key_from_bytes()
1422 int pmbtoken_exp2_issuer_key_from_bytes(TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_exp2_issuer_key_from_bytes()
1462 int pmbtoken_exp2_read(const TRUST_TOKEN_ISSUER_KEY *key, in pmbtoken_exp2_read()
1586 int pmbtoken_pst1_client_key_from_bytes(TRUST_TOKEN_CLIENT_KEY *key, in pmbtoken_pst1_client_key_from_bytes()
[all …]
/crypto/cipher/
A De_tls.cc57 static int aead_tls_init(EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, in aead_tls_init()
393 static int aead_aes_128_cbc_sha1_tls_init(EVP_AEAD_CTX *ctx, const uint8_t *key, in aead_aes_128_cbc_sha1_tls_init()
401 EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, size_t tag_len, in aead_aes_128_cbc_sha1_tls_implicit_iv_init()
408 const uint8_t *key, size_t key_len, in aead_aes_128_cbc_sha256_tls_init()
415 static int aead_aes_256_cbc_sha1_tls_init(EVP_AEAD_CTX *ctx, const uint8_t *key, in aead_aes_256_cbc_sha1_tls_init()
423 EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, size_t tag_len, in aead_aes_256_cbc_sha1_tls_implicit_iv_init()
430 const uint8_t *key, size_t key_len, in aead_des_ede3_cbc_sha1_tls_init()
438 EVP_AEAD_CTX *ctx, const uint8_t *key, size_t key_len, size_t tag_len, in aead_des_ede3_cbc_sha1_tls_implicit_iv_init()
A Daead_test.cc185 std::vector<uint8_t> key, nonce, in, ad, ct, tag; in TEST_P() local
294 std::vector<uint8_t> key, nonce, in, ad, ct, tag; in TEST_P() local
334 std::vector<uint8_t> key, nonce, in, ad, ct, tag; in TEST_P() local
453 uint8_t key[EVP_AEAD_MAX_KEY_LENGTH]; in TEST_P() local
480 uint8_t key[EVP_AEAD_MAX_KEY_LENGTH]; in TEST_P() local
545 std::vector<uint8_t> key(key_len, 'a'); in TEST_P() local
658 uint8_t key[EVP_AEAD_MAX_KEY_LENGTH]; in TEST_P() local
743 const uint8_t *key, size_t key_len) { in aead_ctx_init_for_seal()
749 const uint8_t *key, size_t key_len) { in aead_ctx_init_for_open()
778 uint8_t key[EVP_AEAD_MAX_KEY_LENGTH]; in TEST_P() local
[all …]
A De_rc2.cc103 static void RC2_encrypt(uint32_t *d, RC2_KEY *key) { in RC2_encrypt()
147 static void RC2_decrypt(uint32_t *d, RC2_KEY *key) { in RC2_decrypt()
290 static void RC2_set_key(RC2_KEY *key, int len, const uint8_t *data, int bits) { in RC2_set_key()
346 static int rc2_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in rc2_init_key()
356 EVP_RC2_KEY *key = (EVP_RC2_KEY *)ctx->cipher_data; in rc2_cbc_cipher() local
372 EVP_RC2_KEY *key = (EVP_RC2_KEY *)ctx->cipher_data; in rc2_ctrl() local
/crypto/aes/
A Daes.cc21 void AES_encrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key) { in AES_encrypt()
25 void AES_decrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key) { in AES_decrypt()
29 int AES_set_encrypt_key(const uint8_t *key, unsigned bits, AES_KEY *aeskey) { in AES_set_encrypt_key()
36 int AES_set_decrypt_key(const uint8_t *key, unsigned bits, AES_KEY *aeskey) { in AES_set_decrypt_key()
/crypto/ecdsa/
A Decdsa_p1363_test.cc41 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in RunWycheproofTest() local
110 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in RunSignTest() local
149 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
168 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
191 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
/crypto/ecdh/
A Decdh_test.cc38 static const EC_GROUP *GetCurve(FileTest *t, const char *key) { in GetCurve()
61 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *key) { in GetBIGNUM()
87 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
157 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in RunWycheproofTest() local
275 bssl::UniquePtr<EC_KEY> key(EC_KEY_new()); in TEST() local
/crypto/lhash/
A Dlhash_test.cc54 std::map<std::string, std::unique_ptr<char[]>> *dummy_lh, const char *key) { in Lookup()
109 std::unique_ptr<char[]> key = RandString(); in TEST() local
127 std::unique_ptr<char[]> key = RandString(); in TEST() local
136 std::unique_ptr<char[]> key = RandString(); in TEST() local

Completed in 61 milliseconds

1234