Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 25 of 219) sorted by relevance

123456789

/external/openssh/
Ddigest-libc.c44 int alg; member
124 ssh_digest_by_alg(int alg) in ssh_digest_by_alg() argument
126 if (alg < 0 || alg >= SSH_DIGEST_MAX) in ssh_digest_by_alg()
128 if (digests[alg].id != alg) /* sanity */ in ssh_digest_by_alg()
130 return &(digests[alg]); in ssh_digest_by_alg()
136 int alg; in ssh_digest_alg_by_name() local
138 for (alg = 0; alg < SSH_DIGEST_MAX; alg++) { in ssh_digest_alg_by_name()
139 if (strcasecmp(name, digests[alg].name) == 0) in ssh_digest_alg_by_name()
140 return digests[alg].id; in ssh_digest_alg_by_name()
146 ssh_digest_alg_name(int alg) in ssh_digest_alg_name() argument
[all …]
Ddigest-openssl.c45 int alg; member
68 ssh_digest_by_alg(int alg) in ssh_digest_by_alg() argument
70 if (alg < 0 || alg >= SSH_DIGEST_MAX) in ssh_digest_by_alg()
72 if (digests[alg].id != alg) /* sanity */ in ssh_digest_by_alg()
74 if (digests[alg].mdfunc == NULL) in ssh_digest_by_alg()
76 return &(digests[alg]); in ssh_digest_by_alg()
82 int alg; in ssh_digest_alg_by_name() local
84 for (alg = 0; digests[alg].id != -1; alg++) { in ssh_digest_alg_by_name()
85 if (strcasecmp(name, digests[alg].name) == 0) in ssh_digest_alg_by_name()
86 return digests[alg].id; in ssh_digest_alg_by_name()
[all …]
Dhmac.c28 int alg; member
37 ssh_hmac_bytes(int alg) in ssh_hmac_bytes() argument
39 return ssh_digest_bytes(alg); in ssh_hmac_bytes()
43 ssh_hmac_start(int alg) in ssh_hmac_start() argument
49 ret->alg = alg; in ssh_hmac_start()
50 if ((ret->ictx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
51 (ret->octx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
52 (ret->digest = ssh_digest_start(alg)) == NULL) in ssh_hmac_start()
73 else if (ssh_digest_memory(ctx->alg, key, klen, ctx->buf, in ssh_hmac_init()
109 len = ssh_digest_bytes(ctx->alg); in ssh_hmac_final()
Ddigest.h40 const char *ssh_digest_alg_name(int alg);
43 size_t ssh_digest_bytes(int alg);
53 int ssh_digest_memory(int alg, const void *m, size_t mlen,
57 int ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen)
61 struct ssh_digest_ctx *ssh_digest_start(int alg);
/external/strace/tests-mx32/
Dnetlink_crypto.c101 struct crypto_user_alg alg = { in test_crypto_msg_newalg() local
110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg()
114 alg, print_quoted_memory, in test_crypto_msg_newalg()
118 PRINT_FIELD_X(", ", alg, cru_type); in test_crypto_msg_newalg()
119 PRINT_FIELD_X(", ", alg, cru_mask); in test_crypto_msg_newalg()
120 PRINT_FIELD_U(", ", alg, cru_refcnt); in test_crypto_msg_newalg()
121 PRINT_FIELD_X(", ", alg, cru_flags); in test_crypto_msg_newalg()
124 fill_memory_ex(alg.cru_name, sizeof(alg.cru_name), '0', 10); in test_crypto_msg_newalg()
125 fill_memory_ex(alg.cru_driver_name, sizeof(alg.cru_driver_name), in test_crypto_msg_newalg()
127 fill_memory_ex(alg.cru_module_name, sizeof(alg.cru_module_name), in test_crypto_msg_newalg()
[all …]
/external/strace/tests/
Dnetlink_crypto.c101 struct crypto_user_alg alg = { in test_crypto_msg_newalg() local
110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg()
114 alg, print_quoted_memory, in test_crypto_msg_newalg()
118 PRINT_FIELD_X(", ", alg, cru_type); in test_crypto_msg_newalg()
119 PRINT_FIELD_X(", ", alg, cru_mask); in test_crypto_msg_newalg()
120 PRINT_FIELD_U(", ", alg, cru_refcnt); in test_crypto_msg_newalg()
121 PRINT_FIELD_X(", ", alg, cru_flags); in test_crypto_msg_newalg()
124 fill_memory_ex(alg.cru_name, sizeof(alg.cru_name), '0', 10); in test_crypto_msg_newalg()
125 fill_memory_ex(alg.cru_driver_name, sizeof(alg.cru_driver_name), in test_crypto_msg_newalg()
127 fill_memory_ex(alg.cru_module_name, sizeof(alg.cru_module_name), in test_crypto_msg_newalg()
[all …]
/external/strace/tests-m32/
Dnetlink_crypto.c101 struct crypto_user_alg alg = { in test_crypto_msg_newalg() local
110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg()
114 alg, print_quoted_memory, in test_crypto_msg_newalg()
118 PRINT_FIELD_X(", ", alg, cru_type); in test_crypto_msg_newalg()
119 PRINT_FIELD_X(", ", alg, cru_mask); in test_crypto_msg_newalg()
120 PRINT_FIELD_U(", ", alg, cru_refcnt); in test_crypto_msg_newalg()
121 PRINT_FIELD_X(", ", alg, cru_flags); in test_crypto_msg_newalg()
124 fill_memory_ex(alg.cru_name, sizeof(alg.cru_name), '0', 10); in test_crypto_msg_newalg()
125 fill_memory_ex(alg.cru_driver_name, sizeof(alg.cru_driver_name), in test_crypto_msg_newalg()
127 fill_memory_ex(alg.cru_module_name, sizeof(alg.cru_module_name), in test_crypto_msg_newalg()
[all …]
/external/syzkaller/sys/linux/
Dinit_alg_test.go39 for _, alg := range algList {
40 allall[alg.name] = true
41 if algs[alg.name] {
42 t.Errorf("duplicate: %v", alg.name)
44 algs[alg.name] = true
45 if len(alg.args) > 0 {
46 templates[alg.name] = true
49 for _, alg := range algList {
50 if len(alg.args) > 0 || strings.HasPrefix(alg.name, "__") {
53 brace := strings.IndexByte(alg.name, '(')
[all …]
/external/ltp/testcases/network/tcp_cc/
Dtcp_cc_lib.sh18 local alg=$1
19 tst_res TINFO "setting $alg"
21 tst_set_sysctl net.ipv4.tcp_congestion_control $alg safe
41 local alg="$1"
43 modprobe tcp_$alg > /dev/null 2>&1
44 grep -q $alg $proc_cc || tst_brk TCONF "Local host doesn't support $alg"
47 tst_rhost_run -c "modprobe tcp_$alg" > /dev/null 2>&1
48 tst_rhost_run -c "grep -q $alg $proc_cc" || \
49 tst_brk TCONF "Remote host doesn't support $alg"
88 local alg=$1
[all …]
/external/boringssl/src/crypto/x509/
Dx_algor.c80 int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype,
83 if (!alg)
86 if (alg->parameter == NULL)
87 alg->parameter = ASN1_TYPE_new();
88 if (alg->parameter == NULL)
91 if (alg) {
92 if (alg->algorithm)
93 ASN1_OBJECT_free(alg->algorithm);
94 alg->algorithm = (ASN1_OBJECT *)aobj;
99 if (alg->parameter) {
[all …]
Drsa_pss.c81 static X509_ALGOR *rsa_mgf1_decode(X509_ALGOR *alg) {
82 if (alg == NULL || alg->parameter == NULL ||
83 OBJ_obj2nid(alg->algorithm) != NID_mgf1 ||
84 alg->parameter->type != V_ASN1_SEQUENCE) {
88 const uint8_t *p = alg->parameter->value.sequence->data;
89 int plen = alg->parameter->value.sequence->length;
93 static RSA_PSS_PARAMS *rsa_pss_decode(const X509_ALGOR *alg, in rsa_pss_decode() argument
97 if (alg->parameter == NULL || alg->parameter->type != V_ASN1_SEQUENCE) { in rsa_pss_decode()
101 const uint8_t *p = alg->parameter->value.sequence->data; in rsa_pss_decode()
102 int plen = alg->parameter->value.sequence->length; in rsa_pss_decode()
[all …]
/external/scapy/scapy/layers/tls/
Dtools.py34 def _tls_compress(alg, p): argument
42 c.fragment = alg.compress(p.fragment)
46 def _tls_decompress(alg, c): argument
54 p.fragment = alg.decompress(c.fragment)
58 def _tls_mac_add(alg, c, write_seq_num): argument
67 h = alg.digest(write_seq_num + str(c))
69 c.len += alg.hash_len
71 def _tls_mac_verify(alg, p, read_seq_num): argument
87 h_size = alg.hash_len
95 h = alg.digest(read_seq_num + str(p))
[all …]
/external/webrtc/webrtc/base/
Dmessagedigest.cc38 MessageDigest* MessageDigestFactory::Create(const std::string& alg) { in Create() argument
40 MessageDigest* digest = new OpenSSLDigest(alg); in Create()
48 if (alg == DIGEST_MD5) { in Create()
50 } else if (alg == DIGEST_SHA_1) { in Create()
57 bool IsFips180DigestAlgorithm(const std::string& alg) { in IsFips180DigestAlgorithm() argument
63 return alg == DIGEST_SHA_1 || in IsFips180DigestAlgorithm()
64 alg == DIGEST_SHA_224 || in IsFips180DigestAlgorithm()
65 alg == DIGEST_SHA_256 || in IsFips180DigestAlgorithm()
66 alg == DIGEST_SHA_384 || in IsFips180DigestAlgorithm()
67 alg == DIGEST_SHA_512; in IsFips180DigestAlgorithm()
[all …]
Dmessagedigest.h43 static MessageDigest* Create(const std::string& alg);
47 bool IsFips180DigestAlgorithm(const std::string& alg);
60 size_t ComputeDigest(const std::string& alg, const void* input, size_t in_len,
68 std::string ComputeDigest(const std::string& alg, const std::string& input);
70 bool ComputeDigest(const std::string& alg, const std::string& input,
91 size_t ComputeHmac(const std::string& alg, const void* key, size_t key_len,
101 std::string ComputeHmac(const std::string& alg, const std::string& key,
104 bool ComputeHmac(const std::string& alg, const std::string& key,
/external/fsverity-utils/
Dhash_algs.c36 ctx->base.alg->name); in openssl_digest_init()
46 ctx->base.alg->name); in openssl_digest_update()
55 ctx->base.alg->name); in openssl_digest_final()
72 openssl_digest_ctx_create(const struct fsverity_hash_alg *alg, const EVP_MD *md) in openssl_digest_ctx_create() argument
77 ctx->base.alg = alg; in openssl_digest_ctx_create()
92 ASSERT(EVP_MD_size(md) == alg->digest_size); in openssl_digest_ctx_create()
97 static struct hash_ctx *create_sha256_ctx(const struct fsverity_hash_alg *alg) in create_sha256_ctx() argument
99 return openssl_digest_ctx_create(alg, EVP_sha256()); in create_sha256_ctx()
102 static struct hash_ctx *create_sha512_ctx(const struct fsverity_hash_alg *alg) in create_sha512_ctx() argument
104 return openssl_digest_ctx_create(alg, EVP_sha512()); in create_sha512_ctx()
[all …]
Dhash_algs.h13 struct hash_ctx *(*create_ctx)(const struct fsverity_hash_alg *alg);
19 const struct fsverity_hash_alg *alg; member
37 static inline struct hash_ctx *hash_create(const struct fsverity_hash_alg *alg) in hash_create() argument
39 return alg->create_ctx(alg); in hash_create()
/external/libcups/cups/
Dhash.c188 gnutls_digest_algorithm_t alg = GNUTLS_DIG_UNKNOWN; in cupsHashData() local
194 alg = GNUTLS_DIG_MD5; in cupsHashData()
196 alg = GNUTLS_DIG_SHA1; in cupsHashData()
198 alg = GNUTLS_DIG_SHA224; in cupsHashData()
200 alg = GNUTLS_DIG_SHA256; in cupsHashData()
202 alg = GNUTLS_DIG_SHA384; in cupsHashData()
204 alg = GNUTLS_DIG_SHA512; in cupsHashData()
207 alg = GNUTLS_DIG_SHA512; in cupsHashData()
212 alg = GNUTLS_DIG_SHA512; in cupsHashData()
216 if (alg != GNUTLS_DIG_UNKNOWN) in cupsHashData()
[all …]
/external/tensorflow/tensorflow/core/ops/
Dtpu_embedding_ops.cc77 tpu::OptimizationAlgorithm alg, bool is_debug_op, in RegisterPerTableLoadOpsForAlgorithmBody() argument
80 TF_CHECK_OK(GetGradientAccumulationSupport(alg, &grad_accum_support)); in RegisterPerTableLoadOpsForAlgorithmBody()
84 alg, in RegisterPerTableLoadOpsForAlgorithmBody()
90 strings::StrCat("LoadTPUEmbedding", GetOptimizationAlgorithmName(alg), in RegisterPerTableLoadOpsForAlgorithmBody()
134 GetOptimizationAlgorithmFriendlyName(alg).c_str()); in RegisterPerTableLoadOpsForAlgorithmBody()
193 tpu::OptimizationAlgorithm alg, bool is_debug_op, in RegisterPerTableRetrieveOpsForAlgorithmBody() argument
196 TF_CHECK_OK(GetGradientAccumulationSupport(alg, &grad_accum_support)); in RegisterPerTableRetrieveOpsForAlgorithmBody()
200 alg, in RegisterPerTableRetrieveOpsForAlgorithmBody()
207 "RetrieveTPUEmbedding", tpu::GetOptimizationAlgorithmName(alg), in RegisterPerTableRetrieveOpsForAlgorithmBody()
251 tpu::GetOptimizationAlgorithmFriendlyName(alg).c_str()); in RegisterPerTableRetrieveOpsForAlgorithmBody()
[all …]
/external/tensorflow/tensorflow/core/tpu/
Dtpu_embedding_optimization_parameters_utils.cc22 string GetOptimizationAlgorithmName(OptimizationAlgorithm alg) { in GetOptimizationAlgorithmName() argument
23 switch (alg) { in GetOptimizationAlgorithmName()
50 string GetOptimizationAlgorithmFriendlyName(OptimizationAlgorithm alg) { in GetOptimizationAlgorithmFriendlyName() argument
51 switch (alg) { in GetOptimizationAlgorithmFriendlyName()
81 Status GetBaseAuxiliaryParameterCount(OptimizationAlgorithm alg, int* count) { in GetBaseAuxiliaryParameterCount() argument
82 switch (alg) { in GetBaseAuxiliaryParameterCount()
119 Status GetGradientAccumulationSupport(OptimizationAlgorithm alg, in GetGradientAccumulationSupport() argument
121 switch (alg) { in GetGradientAccumulationSupport()
131 GetBaseAuxiliaryParameterCount(alg, &auxiliary_parameter_count)); in GetGradientAccumulationSupport()
155 OptimizationAlgorithm alg, bool use_gradient_accumulation, in GetOptimizationAlgorithmStateVariables() argument
[all …]
Dtpu_embedding_optimization_parameters_utils.h30 string GetOptimizationAlgorithmName(OptimizationAlgorithm alg);
33 string GetOptimizationAlgorithmFriendlyName(OptimizationAlgorithm alg);
52 Status GetBaseAuxiliaryParameterCount(OptimizationAlgorithm alg, int *count);
56 Status GetGradientAccumulationSupport(OptimizationAlgorithm alg,
63 OptimizationAlgorithm alg, bool use_gradient_accumulation,
/external/strace/
Dnetlink_crypto.c198 struct crypto_user_alg alg; in decode_crypto_user_alg() local
200 if (len < sizeof(alg)) in decode_crypto_user_alg()
202 else if (!umove_or_printaddr(tcp, addr, &alg)) { in decode_crypto_user_alg()
203 PRINT_FIELD_CSTRING("{", alg, cru_name); in decode_crypto_user_alg()
204 PRINT_FIELD_CSTRING(", ", alg, cru_driver_name); in decode_crypto_user_alg()
205 PRINT_FIELD_CSTRING(", ", alg, cru_module_name); in decode_crypto_user_alg()
206 PRINT_FIELD_X(", ", alg, cru_type); in decode_crypto_user_alg()
207 PRINT_FIELD_X(", ", alg, cru_mask); in decode_crypto_user_alg()
208 PRINT_FIELD_U(", ", alg, cru_refcnt); in decode_crypto_user_alg()
209 PRINT_FIELD_X(", ", alg, cru_flags); in decode_crypto_user_alg()
[all …]
/external/epid-sdk/example/util/src/
Dconvutil.c36 char const* HashAlgToString(HashAlg alg) { in HashAlgToString() argument
37 if ((int)alg < 0 || (size_t)alg >= COUNT_OF(hash_alg_to_string)) in HashAlgToString()
39 return hash_alg_to_string[alg]; in HashAlgToString()
42 bool StringToHashAlg(char const* str, HashAlg* alg) { in StringToHashAlg() argument
44 if (!alg || !str) return false; in StringToHashAlg()
47 *alg = (HashAlg)i; in StringToHashAlg()
/external/boringssl/src/ssl/
Dssl_privkey.cc148 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in pkey_supports_algorithm() local
149 if (alg == NULL || in pkey_supports_algorithm()
150 EVP_PKEY_id(pkey) != alg->pkey_type) { in pkey_supports_algorithm()
156 if (alg->pkey_type == EVP_PKEY_RSA && !alg->is_rsa_pss) { in pkey_supports_algorithm()
161 if (alg->pkey_type == EVP_PKEY_EC && in pkey_supports_algorithm()
162 (alg->curve == NID_undef || in pkey_supports_algorithm()
164 EC_KEY_get0_group(EVP_PKEY_get0_EC_KEY(pkey))) != alg->curve)) { in pkey_supports_algorithm()
179 const SSL_SIGNATURE_ALGORITHM *alg = get_signature_algorithm(sigalg); in setup_ctx() local
180 const EVP_MD *digest = alg->digest_func != NULL ? alg->digest_func() : NULL; in setup_ctx()
190 if (alg->is_rsa_pss) { in setup_ctx()
[all …]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dplot_dynamics.py76 for alg in v.samples.keys():
78 for series in v.samples[alg].keys():
80 x = [sample[0] for sample in v.samples[alg][series]]
81 y = [sample[1] for sample in v.samples[alg][series]]
85 line = plt.plot(x, y, label=alg, linewidth=4.0)
101 key = alg + flow_id.group(1)
105 elif alg == 'TCP':
110 if alg.startswith('Available'):
/external/ltp/lib/
Dtst_crypto.c80 const struct crypto_user_alg *alg) in tst_crypto_add_alg() argument
83 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_add_alg()
90 SAFE_NETLINK_SEND(ses->fd, &nh, alg); in tst_crypto_add_alg()
96 const struct crypto_user_alg *alg) in tst_crypto_del_alg() argument
100 .nlmsg_len = sizeof(struct nlmsghdr) + sizeof(*alg), in tst_crypto_del_alg()
109 SAFE_NETLINK_SEND(ses->fd, &nh, alg); in tst_crypto_del_alg()

123456789