Home
last modified time | relevance | path

Searched refs:alg2 (Results 1 – 18 of 18) sorted by relevance

/third_party/mbedtls/scripts/mbedtls_dev/
Dpsa_storage.py110 usage: Exprable, alg: Exprable, alg2: Exprable,
120 self.alg2 = as_expr(alg2) #type: Expr
154 self.usage, self.alg, self.alg2)
180 usage=0x00000300, alg=0x05500200, alg2=0x04c01000,
191 usage=0, alg=0, alg2=0,
199 usage=0, alg=0, alg2=0,
/third_party/mbedtls/tests/scripts/
Dgenerate_psa_tests.py387 key.expected_usage, key.alg.string, key.alg2.string,
408 key.expected_usage, key.alg.string, key.alg2.string,
427 usage='PSA_KEY_USAGE_EXPORT', alg=0, alg2=0,
462 usage=usage, alg=0, alg2=0,
473 usage=usage, alg=0, alg2=0,
511 alg2 = 0
520 usage=usage_flags, alg=alg, alg2=alg2,
542 usage=usage, alg=alg, alg2=0,
549 usage=usage, alg=0, alg2=alg,
614 alg2 = 0
[all …]
/third_party/mbedtls/include/psa/
Dcrypto_extra.h74 psa_algorithm_t alg2) in psa_set_key_enrollment_algorithm() argument
76 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(policy).MBEDTLS_PRIVATE(alg2) = alg2; in psa_set_key_enrollment_algorithm()
88 return( attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(policy).MBEDTLS_PRIVATE(alg2) ); in psa_get_key_enrollment_algorithm()
Dcrypto_struct.h275 psa_algorithm_t MBEDTLS_PRIVATE(alg2);
/third_party/openssl/crypto/dsa/
Ddsa_ameth.c470 X509_ALGOR *alg1, *alg2; in dsa_pkey_ctrl() local
471 PKCS7_SIGNER_INFO_get0_algs(arg2, NULL, &alg1, &alg2); in dsa_pkey_ctrl()
479 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in dsa_pkey_ctrl()
486 X509_ALGOR *alg1, *alg2; in dsa_pkey_ctrl() local
487 CMS_SignerInfo_get0_algs(arg2, NULL, NULL, &alg1, &alg2); in dsa_pkey_ctrl()
495 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in dsa_pkey_ctrl()
/third_party/openssl/crypto/ec/
Decx_meth.c528 X509_ALGOR *alg1, X509_ALGOR *alg2, in ecd_item_sign25519() argument
533 if (alg2) in ecd_item_sign25519()
534 X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_ED25519), V_ASN1_UNDEF, NULL); in ecd_item_sign25519()
548 X509_ALGOR *alg1, X509_ALGOR *alg2, in ecd_item_sign448() argument
553 if (alg2 != NULL) in ecd_item_sign448()
554 X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_ED448), V_ASN1_UNDEF, NULL); in ecd_item_sign448()
Dec_ameth.c482 X509_ALGOR *alg1, *alg2; in ec_pkey_ctrl() local
483 PKCS7_SIGNER_INFO_get0_algs(arg2, NULL, &alg1, &alg2); in ec_pkey_ctrl()
491 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in ec_pkey_ctrl()
498 X509_ALGOR *alg1, *alg2; in ec_pkey_ctrl() local
499 CMS_SignerInfo_get0_algs(arg2, NULL, NULL, &alg1, &alg2); in ec_pkey_ctrl()
507 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in ec_pkey_ctrl()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_storage_format.function165 psa_algorithm_t alg2 = alg2_arg;
179 psa_set_key_enrollment_algorithm( &attributes, alg2 );
209 psa_algorithm_t alg2 = alg2_arg;
223 psa_set_key_enrollment_algorithm( &attributes, alg2 );
Dtest_suite_psa_crypto_slot_management.function204 psa_algorithm_t alg2 = alg2_arg;
231 psa_set_key_enrollment_algorithm( &attributes, alg2 );
248 TEST_EQUAL( psa_get_key_enrollment_algorithm( &attributes ), alg2 );
268 TEST_EQUAL( psa_get_key_enrollment_algorithm( &attributes ), alg2 );
Dtest_suite_psa_crypto.function1548 psa_algorithm_t alg2 = alg2_arg;
1554 psa_set_key_enrollment_algorithm( &attributes, alg2 );
1564 TEST_EQUAL( psa_get_key_enrollment_algorithm( &got_attributes ), alg2 );
1568 if( ! mbedtls_test_psa_exercise_key( key, usage, alg2 ) )
/third_party/mbedtls/library/
Dpsa_crypto.c616 psa_algorithm_t alg2 ) in psa_key_policy_algorithm_intersection() argument
619 if( alg1 == alg2 ) in psa_key_policy_algorithm_intersection()
624 PSA_ALG_IS_SIGN_HASH( alg2 ) && in psa_key_policy_algorithm_intersection()
625 ( alg1 & ~PSA_ALG_HASH_MASK ) == ( alg2 & ~PSA_ALG_HASH_MASK ) ) in psa_key_policy_algorithm_intersection()
628 return( alg2 ); in psa_key_policy_algorithm_intersection()
629 if( PSA_ALG_SIGN_GET_HASH( alg2 ) == PSA_ALG_ANY_HASH ) in psa_key_policy_algorithm_intersection()
635 if( PSA_ALG_IS_AEAD( alg1 ) && PSA_ALG_IS_AEAD( alg2 ) && in psa_key_policy_algorithm_intersection()
637 PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg2, 0 ) ) ) in psa_key_policy_algorithm_intersection()
640 size_t alg2_len = PSA_ALG_AEAD_GET_TAG_LENGTH( alg2 ); in psa_key_policy_algorithm_intersection()
645 ( ( alg2 & PSA_ALG_AEAD_AT_LEAST_THIS_LENGTH_FLAG ) != 0 ) ) in psa_key_policy_algorithm_intersection()
[all …]
Dpsa_crypto_storage.c265 MBEDTLS_PUT_UINT32_LE( attr->policy.alg2, storage_format->policy, 2 * sizeof( uint32_t ) ); in psa_format_key_data_for_storage()
322 attr->policy.alg2 = MBEDTLS_GET_UINT32_LE( storage_format->policy, 2 * sizeof( uint32_t ) ); in psa_parse_key_data_from_storage()
/third_party/openssl/include/crypto/
Dasn1.h53 X509_ALGOR *alg1, X509_ALGOR *alg2,
/third_party/openssl/crypto/rsa/
Drsa_ameth.c827 X509_ALGOR *alg1, X509_ALGOR *alg2, in rsa_item_sign() argument
843 if (alg2) { in rsa_item_sign()
849 X509_ALGOR_set0(alg2, OBJ_nid2obj(EVP_PKEY_RSA_PSS), in rsa_item_sign()
/third_party/openssl/crypto/asn1/
Dameth_lib.c387 X509_ALGOR *alg2, in EVP_PKEY_asn1_set_item() argument
/third_party/openssl/doc/man3/
DEVP_PKEY_ASN1_METHOD.pod98 X509_ALGOR *alg2,
280 X509_ALGOR *alg1, X509_ALGOR *alg2,
/third_party/openssl/ssl/
Ds3_lib.c4544 long alg2; in ssl_get_algorithm2() local
4547 alg2 = s->s3->tmp.new_cipher->algorithm2; in ssl_get_algorithm2()
4549 if (alg2 == (SSL_HANDSHAKE_MAC_DEFAULT | TLS1_PRF)) in ssl_get_algorithm2()
4552 if (alg2 == (SSL_HANDSHAKE_MAC_SHA384 | TLS1_PRF_SHA384)) in ssl_get_algorithm2()
4555 return alg2; in ssl_get_algorithm2()
/third_party/openssl/include/openssl/
Devp.h1218 X509_ALGOR *alg2,