Home
last modified time | relevance | path

Searched refs:kdf (Results 1 – 23 of 23) sorted by relevance

/external/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c177 CBB algorithm, oid, param, kdf, kdf_oid, kdf_param, salt_cbb, cipher_cbb, in PKCS5_pbe2_encrypt_init() local
183 !CBB_add_asn1(&param, &kdf, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init()
184 !CBB_add_asn1(&kdf, &kdf_oid, CBS_ASN1_OBJECT) || in PKCS5_pbe2_encrypt_init()
186 !CBB_add_asn1(&kdf, &kdf_param, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_encrypt_init()
211 CBS pbe_param, kdf, kdf_obj, enc_scheme, enc_obj; in PKCS5_pbe2_decrypt_init() local
214 !CBS_get_asn1(&pbe_param, &kdf, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init()
217 !CBS_get_asn1(&kdf, &kdf_obj, CBS_ASN1_OBJECT) || in PKCS5_pbe2_decrypt_init()
239 if (!CBS_get_asn1(&kdf, &pbkdf2_params, CBS_ASN1_SEQUENCE) || in PKCS5_pbe2_decrypt_init()
240 CBS_len(&kdf) != 0 || in PKCS5_pbe2_decrypt_init()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseAgreementSpi.java145 private final DerivationFunction kdf; field in BaseAgreementSpi
149 public BaseAgreementSpi(String kaAlgorithm, DerivationFunction kdf) in BaseAgreementSpi() argument
152 this.kdf = kdf; in BaseAgreementSpi()
224 if (kdf != null) in engineGenerateSecret()
264 if (kdf != null) in engineGenerateSecret()
293 kdf.init(params); in engineGenerateSecret()
296 kdf.generateBytes(keyBytes, 0, keyBytes.length); in engineGenerateSecret()
/external/boringssl/src/crypto/ecdh/
Decdh.c82 void *(*kdf)(const void *in, size_t inlen, void *out, in ECDH_compute_key()
135 if (kdf != NULL) { in ECDH_compute_key()
136 if (kdf(buf, buflen, out, &outlen) == NULL) { in ECDH_compute_key()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DPBES2AlgorithmParameters.java45 private final AlgorithmIdentifier kdf; field in PBES2AlgorithmParameters.BasePBEWithHmacAlgorithmParameters
54 ASN1ObjectIdentifier kdf, in BasePBEWithHmacAlgorithmParameters() argument
59 this.kdf = new AlgorithmIdentifier(kdf, DERNull.INSTANCE); in BasePBEWithHmacAlgorithmParameters()
137 pbeSpec.getSalt(), pbeSpec.getIterationCount(), keySize, kdf)), in engineInit()
/external/wpa_supplicant_8/src/eap_peer/
Deap_aka.c55 u16 kdf; member
803 u8 id, u16 kdf) in eap_aka_prime_kdf_select() argument
808 data->kdf = kdf; in eap_aka_prime_kdf_select()
814 eap_sim_msg_add(msg, EAP_SIM_AT_KDF, kdf, NULL, 0); in eap_aka_prime_kdf_select()
825 if (attr->kdf[i] == EAP_AKA_PRIME_KDF) in eap_aka_prime_kdf_neg()
848 if (attr->kdf[0] != data->kdf) { in eap_aka_prime_kdf_valid()
855 if (attr->kdf[i] == data->kdf) in eap_aka_prime_kdf_valid()
870 for (i = data->kdf ? 1 : 0; i < attr->kdf_count; i++) { in eap_aka_prime_kdf_valid()
872 if (attr->kdf[i] == attr->kdf[j]) { in eap_aka_prime_kdf_valid()
933 if (attr->kdf[0] != EAP_AKA_PRIME_KDF) in eap_aka_process_challenge()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyAgreementSpi.java68 DerivationFunction kdf) in KeyAgreementSpi() argument
70 super(kaAlgorithm, kdf); in KeyAgreementSpi()
/external/boringssl/src/include/openssl/
Decdh.h90 void *(*kdf)(const void *in, size_t inlen, void *out, size_t *outlen));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java50 DerivationFunction kdf) in KeyAgreementSpi() argument
52 super(kaAlgorithm, kdf); in KeyAgreementSpi()
/external/tpm2/
DCpriDataEcc.h26 TPMT_KDF_SCHEME kdf; member
Dtpm_types.h1082 TPMI_ALG_KDF kdf; member
1299 TPMT_KDF_SCHEME kdf; member
1432 TPMT_KDF_SCHEME kdf; member
DObject_spt.c413 if(publicArea->parameters.eccDetail.kdf.scheme != TPM_ALG_NULL) in SchemeChecks()
472 if(scheme->details.xor_.kdf == TPM_ALG_NULL) in SchemeChecks()
DCryptUtil.c1711 parameters->kdf = curve->kdf; in CryptEccGetParameters()
Dtpm_generated.c3040 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ECC_PARMS_Marshal()
3060 result = TPMT_KDF_SCHEME_Unmarshal(&target->kdf, buffer, size); in TPMS_ECC_PARMS_Unmarshal()
3119 total_size += TPMI_ALG_KDF_Marshal(&source->kdf, buffer, size); in TPMS_SCHEME_XOR_Marshal()
3131 result = TPMI_ALG_KDF_Unmarshal(&target->kdf, buffer, size, FALSE); in TPMS_SCHEME_XOR_Unmarshal()
6018 total_size += TPMT_KDF_SCHEME_Marshal(&source->kdf, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Marshal()
6042 result = TPMT_KDF_SCHEME_Unmarshal(&target->kdf, buffer, size); in TPMS_ALGORITHM_DETAIL_ECC_Unmarshal()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_aka.c51 u16 kdf; member
479 if (data->kdf) { in eap_aka_build_challenge()
482 eap_sim_msg_add(msg, EAP_SIM_AT_KDF, data->kdf, in eap_aka_build_challenge()
923 if (attr->kdf[0] != EAP_AKA_PRIME_KDF) { in eap_aka_process_challenge()
932 data->kdf = attr->kdf[0]; in eap_aka_process_challenge()
936 wpa_printf(MSG_DEBUG, "EAP-AKA': KDF %d selected", data->kdf); in eap_aka_process_challenge()
/external/openssh/
Dumac.c184 static void kdf(void *bufp, aes_int_key key, UINT8 ndx, int nbytes) in kdf() function
224 kdf(buf, prf_key, 0, UMAC_KEY_LEN); in pdf_init()
601 kdf(hc->nh_key, prf_key, 1, sizeof(hc->nh_key)); in nh_init()
966 kdf(buf, prf_key, 2, sizeof(buf)); /* Fill buffer with index 1 key */ in uhash_init()
980 kdf(buf, prf_key, 3, sizeof(buf)); /* Fill buffer with index 2 key */ in uhash_init()
991 kdf(ahc->ip_trans, prf_key, 4, STREAMS * sizeof(UINT32)); in uhash_init()
Dsshkey.c3051 struct sshbuf *encoded = NULL, *encrypted = NULL, *kdf = NULL; in sshkey_private_to_blob2() local
3069 if ((kdf = sshbuf_new()) == NULL || in sshkey_private_to_blob2()
3090 if ((r = sshbuf_put_string(kdf, salt, SALT_LEN)) != 0 || in sshkey_private_to_blob2()
3091 (r = sshbuf_put_u32(kdf, rounds)) != 0) in sshkey_private_to_blob2()
3105 (r = sshbuf_put_stringb(encoded, kdf)) != 0 || in sshkey_private_to_blob2()
3168 sshbuf_free(kdf); in sshkey_private_to_blob2()
3199 struct sshbuf *kdf = NULL, *decrypted = NULL; in sshkey_parse_private2() local
3266 (r = sshbuf_froms(decoded, &kdf)) != 0 || in sshkey_parse_private2()
3312 if ((r = sshbuf_get_string(kdf, &salt, &slen)) != 0 || in sshkey_parse_private2()
3313 (r = sshbuf_get_u32(kdf, &rounds)) != 0) in sshkey_parse_private2()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.h200 u16 kdf[EAP_AKA_PRIME_KDF_MAX]; member
Deap_sim_common.c898 attr->kdf[attr->kdf_count] = WPA_GET_BE16(apos); in eap_sim_parse_attr()
/external/bouncycastle/patches/
Dbcprov.patch2190 -import org.bouncycastle.crypto.agreement.kdf.DHKDFParameters;
2191 -import org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator;
2195 +// import org.bouncycastle.crypto.agreement.kdf.DHKDFParameters;
2196 +// import org.bouncycastle.crypto.agreement.kdf.ECDHKEKGenerator;
2225 - private DerivationFunction kdf;
2227 + // private DerivationFunction kdf;
2236 - this.kdf = kdf;
2238 + // this.kdf = kdf;
2310 - if (kdf != null)
2316 + // if (kdf != null)
[all …]
/external/boringssl/src/crypto/obj/
Dobjects.txt1331 : dh-std-kdf
1332 : dh-cofactor-kdf
/external/bouncycastle/
Dbouncycastle.config23 org/bouncycastle/crypto/agreement/kdf \
/external/wpa_supplicant_8/hostapd/
DChangeLog604 * added support for EAP-AKA' (draft-arkko-eap-aka-kdf)
/external/wpa_supplicant_8/wpa_supplicant/
DChangeLog1124 * added support for EAP-AKA' (draft-arkko-eap-aka-kdf)