/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/ |
D | ec.py | 47 def key_size(self): member in EllipticCurve 90 def key_size(self): member in EllipticCurvePrivateKey 132 def key_size(self): member in EllipticCurvePublicKey 178 key_size = 570 variable in SECT571R1 184 key_size = 409 variable in SECT409R1 190 key_size = 283 variable in SECT283R1 196 key_size = 233 variable in SECT233R1 202 key_size = 163 variable in SECT163R2 208 key_size = 571 variable in SECT571K1 214 key_size = 409 variable in SECT409K1 [all …]
|
/external/vboot_reference/host/lib/ |
D | host_key.c | 147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc() argument 149 VbPublicKey* key = (VbPublicKey*)malloc(sizeof(VbPublicKey) + key_size); in PublicKeyAlloc() 155 key->key_size = key_size; in PublicKeyAlloc() 164 uint64_t key_size; in PublicKeyReadKeyb() local 177 key_data = ReadFile(filename, &key_size); in PublicKeyReadKeyb() 182 expected_key_size != key_size) { in PublicKeyReadKeyb() 188 key = PublicKeyAlloc(key_size, algorithm, version); in PublicKeyReadKeyb() 193 Memcpy(GetPublicKeyData(key), key_data, key_size); in PublicKeyReadKeyb() 202 uint64_t key_size; in PublicKeyLooksOkay() local 217 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyLooksOkay() [all …]
|
D | host_keyblock.c | 20 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate() 34 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate() 44 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate() 81 uint64_t signed_size = sizeof(VbKeyBlockHeader) + data_key->key_size; in KeyBlockCreate_external() 97 block_chk_dest = data_key_dest + data_key->key_size; in KeyBlockCreate_external() 107 PublicKeyInit(&h->data_key, data_key_dest, data_key->key_size); in KeyBlockCreate_external()
|
/external/avb/libavb/ |
D | avb_property_descriptor.c | 63 size_t key_size; member 90 if (data->key_size == prop_desc.key_num_bytes) { in property_lookup_desc_foreach() 93 data->key_size) == 0) { in property_lookup_desc_foreach() 110 size_t key_size, in avb_property_lookup() argument 114 if (key_size == 0) { in avb_property_lookup() 115 key_size = avb_strlen(key); in avb_property_lookup() 119 data.key_size = key_size; in avb_property_lookup() 138 size_t key_size, in avb_property_lookup_uint64() argument 146 value = avb_property_lookup(image_data, image_size, key, key_size, NULL); in avb_property_lookup_uint64()
|
/external/vboot_reference/firmware/lib20/ |
D | misc.c | 23 uint32_t key_size; in vb2_load_fw_keyblock() local 35 key_size = sd->gbb_rootkey_size; in vb2_load_fw_keyblock() 36 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock() 41 key_data, key_size); in vb2_load_fw_keyblock() 46 rv = vb2_unpack_key(&root_key, key_data, key_size); in vb2_load_fw_keyblock() 103 packed_key->key_size = kb->data_key.key_size; in vb2_load_fw_keyblock() 113 packed_key->key_size); in vb2_load_fw_keyblock() 118 packed_key->key_offset + packed_key->key_size; in vb2_load_fw_keyblock() 136 uint32_t key_size = sd->workbuf_data_key_size; in vb2_load_fw_preamble() local 151 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble()
|
/external/libsrtp2/test/ |
D | rtp_decoder.c | 90 int key_size; member 96 {.can_name = "F8_128_HMAC_SHA1_32", .gcm_on = 0, .key_size = 128, .tag_size = 4}, 100 .key_size = 128, 104 .key_size = 128, 108 .key_size = 192, 112 .key_size = 192, 116 .key_size = 256, 120 .key_size = 256, 124 .key_size = 128, 128 .key_size = 256, [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 427 size_t key_size; in test_lpm_delete() local 431 key_size = sizeof(*key) + sizeof(__u32); in test_lpm_delete() 432 key = alloca(key_size); in test_lpm_delete() 435 key_size, sizeof(value), in test_lpm_delete() 539 size_t key_size; in test_lpm_get_next_key() local 543 key_size = sizeof(*key_p) + sizeof(__u32); in test_lpm_get_next_key() 544 key_p = alloca(key_size); in test_lpm_get_next_key() 545 next_key_p = alloca(key_size); in test_lpm_get_next_key() 547 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, key_size, sizeof(value), in test_lpm_get_next_key() 560 memset(key_p, 0, key_size); in test_lpm_get_next_key() [all …]
|
D | test_btf.c | 109 __u32 key_size; member 177 .key_size = sizeof(int), 232 .key_size = sizeof(int), 257 .key_size = sizeof(int), 298 .key_size = sizeof(int), 343 .key_size = sizeof(int), 365 .key_size = sizeof(int), 387 .key_size = sizeof(int), 409 .key_size = sizeof(int), 434 .key_size = sizeof(int), [all …]
|
/external/vboot_reference/firmware/lib/ |
D | vboot_common.c | 92 key->key_offset, key->key_size); in VerifyPublicKeyInside() 103 void PublicKeyInit(VbPublicKey *key, uint8_t *key_data, uint64_t key_size) in PublicKeyInit() argument 106 key->key_size = key_size; in PublicKeyInit() 113 if (dest->key_size < src->key_size) in PublicKeyCopy() 116 dest->key_size = src->key_size; in PublicKeyCopy() 119 Memcpy(GetPublicKeyData(dest), GetPublicKeyDataC(src), src->key_size); in PublicKeyCopy() 126 uint64_t key_size; in PublicKeyToRSA() local 132 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyToRSA() 133 key_size != key->key_size) { in PublicKeyToRSA() 138 rsa = RSAPublicKeyFromBuf(GetPublicKeyDataC(key), key->key_size); in PublicKeyToRSA() [all …]
|
/external/google-breakpad/src/common/ |
D | simple_string_dictionary.h | 61 static const size_t key_size = KeySize; 112 assert(other.key_size == key_size); 115 if (other.key_size == key_size && other.value_size == value_size && 187 strncpy(entry->key, key, key_size); in SetKeyValue() 188 entry->key[key_size - 1] = '\0'; in SetKeyValue() 203 if (strncmp(entries_[i].key, key, key_size) == 0) in SetKeyValue() 263 if (strncmp(key, entries_[i].key, key_size) == 0) { in GetEntryIndexForKey()
|
D | long_string_dictionary.cc | 81 assert(key_length + kMaxSuffixLength <= (key_size - 1)); in SetKeyValue() 83 char segment_key[key_size]; in SetKeyValue() 121 assert(key_length + kMaxSuffixLength <= (key_size - 1)); in RemoveKey() 123 char segment_key[key_size]; in RemoveKey() 151 assert(key_length + kMaxSuffixLength <= (key_size - 1)); in GetValueForKey() 154 char segment_key[key_size]; in GetValueForKey()
|
/external/python/cryptography/src/cryptography/hazmat/primitives/ciphers/ |
D | algorithms.py | 38 def key_size(self): member in AES 53 def key_size(self): member in Camellia 72 def key_size(self): member in TripleDES 87 def key_size(self): member in Blowfish 102 def key_size(self): member in CAST5 115 def key_size(self): member in ARC4 129 def key_size(self): member in IDEA 144 def key_size(self): member in SEED 166 def key_size(self): member in ChaCha20
|
/external/bcc/src/cc/ |
D | table_desc.h | 49 key_size(that.key_size), in TableDesc() 65 key_size(0), in TableDesc() 71 TableDesc(const std::string &name, FileDesc &&fd, int type, size_t key_size, in TableDesc() argument 76 key_size(key_size), in TableDesc() 92 size_t key_size; // sizes are in bytes variable
|
/external/bcc/src/cc/includes/ |
D | table_desc.h | 49 key_size(that.key_size), in TableDesc() 65 key_size(0), in TableDesc() 71 TableDesc(const std::string &name, FileDesc &&fd, int type, size_t key_size, in TableDesc() argument 76 key_size(key_size), in TableDesc() 92 size_t key_size; // sizes are in bytes variable
|
/external/vboot_reference/tests/ |
D | rsa_verify_benchmark.c | 19 int i, key_size; in SpeedTestAlgorithm() local 35 key_size = siglen_map[algorithm] * 8; /* in bits. */ in SpeedTestAlgorithm() 37 snprintf(file_name, FILE_NAME_SIZE, "testkeys/key_rsa%d.keyb", key_size); in SpeedTestAlgorithm() 57 key_size, sha_strings[algorithm]); in SpeedTestAlgorithm() 75 " Speed = %.02f verifications/s\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm() 77 fprintf(stdout, "ms_rsa%d_%s:%.02f\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_program_cache.c | 73 GLuint key_size; member 103 hash = XXH32(item->key, item->key_size, hash); in hash_key() 114 a->key_size == b->key_size && in brw_cache_item_equals() 115 (memcmp(a->key, b->key, a->key_size) == 0); in brw_cache_item_equals() 171 const void *key, GLuint key_size, uint32_t *inout_offset, in brw_search_cache() argument 180 lookup.key_size = key_size; in brw_search_cache() 189 void *prog_data = ((char *) item->key) + item->key_size; in brw_search_cache() 309 GLuint key_size, in brw_upload_cache() argument 326 item->key_size = key_size; in brw_upload_cache() 347 tmp = malloc(key_size + prog_data_size); in brw_upload_cache() [all …]
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pipeline_cache.c | 37 const void *key_data, uint32_t key_size, in anv_shader_bin_create() argument 55 anv_multialloc_add_size(&ma, &key, sizeof(*key) + key_size); in anv_shader_bin_create() 76 key->size = key_size; in anv_shader_bin_create() 77 memcpy(key->data, key_data, key_size); in anv_shader_bin_create() 202 uint32_t key_size = blob_read_uint32(blob); in anv_shader_bin_create_from_blob() local 203 const void *key_data = blob_read_bytes(blob, key_size); in anv_shader_bin_create_from_blob() 247 key_data, key_size, in anv_shader_bin_create_from_blob() 343 const void *key_data, uint32_t key_size) in anv_pipeline_cache_search_locked() argument 345 uint32_t vla[1 + DIV_ROUND_UP(key_size, sizeof(uint32_t))]; in anv_pipeline_cache_search_locked() 347 key->size = key_size; in anv_pipeline_cache_search_locked() [all …]
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_program_cache.c | 58 uint32_t key_size) in make_keybox() argument 61 ralloc_size(mem_ctx, sizeof(struct keybox) + key_size); in make_keybox() 64 keybox->size = key_size; in make_keybox() 65 memcpy(keybox->data, key, key_size); in make_keybox() 90 uint32_t key_size, in iris_find_cached_shader() argument 93 struct keybox *keybox = make_keybox(NULL, cache_id, key, key_size); in iris_find_cached_shader() 196 uint32_t key_size, in iris_upload_shader() argument 271 struct keybox *keybox = make_keybox(shader, cache_id, key, key_size); in iris_upload_shader() 279 const void *key, uint32_t key_size, in iris_blorp_lookup_shader() argument 286 iris_find_cached_shader(ice, IRIS_CACHE_BLORP, key_size, key); in iris_blorp_lookup_shader() [all …]
|
/external/vboot_reference/host/lib21/ |
D | host_key.c | 111 pkey->key_offset, pkey->key_size)) in vb2_private_key_unpack() 135 if (pkey->key_size != 0) { in vb2_private_key_unpack() 142 pkey->key_size); in vb2_private_key_unpack() 259 pkey.key_size = roundup32(rsalen); in vb2_private_key_write() 260 pkey.c.total_size = pkey.key_offset + pkey.key_size; in vb2_private_key_write() 382 uint32_t key_size; in vb2_public_key_read_keyb() local 387 if (vb2_read_file(filename, &key_data, &key_size)) in vb2_public_key_read_keyb() 392 if (key_size == vb2_packed_key_size(sig_alg)) in vb2_public_key_read_keyb() 407 memcpy(key_buf, key_data, key_size); in vb2_public_key_read_keyb() 410 if (vb2_unpack_key_data(key, key_buf, key_size)) { in vb2_public_key_read_keyb() [all …]
|
/external/arm-trusted-firmware/tools/cert_create/src/ |
D | main.c | 64 static int key_size; variable 153 long key_size; in get_key_size() local 155 key_size = strtol(key_size_str, &end, 10); in get_key_size() 159 return key_size; in get_key_size() 192 if (key_size == KEY_SIZES[key_alg][i]) { in check_cmd_params() 199 key_size, key_algs_str[key_alg]); in check_cmd_params() 317 key_size = -1; in main() 363 key_size = get_key_size(optarg); in main() 364 if (key_size <= 0) { in main() 411 if (key_size == -1) { in main() [all …]
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | rsa_utility.c | 91 uint64_t key_size; in RSAVerifyBinary_f() local 97 if (!RSAProcessedKeySize(algorithm, &key_size)) in RSAVerifyBinary_f() 102 verification_key = RSAPublicKeyFromBuf(key_blob, key_size); in RSAVerifyBinary_f() 130 uint64_t key_size; in RSAVerifyBinaryWithDigest_f() local 136 if (!RSAProcessedKeySize(algorithm, &key_size)) in RSAVerifyBinaryWithDigest_f() 141 verification_key = RSAPublicKeyFromBuf(key_blob, key_size); in RSAVerifyBinaryWithDigest_f()
|
/external/vboot_reference/firmware/lib21/ |
D | misc.c | 71 uint32_t key_size; in vb2_load_fw_keyblock() local 81 key_size = sd->gbb_rootkey_size; in vb2_load_fw_keyblock() 82 key_data = vb2_workbuf_alloc(&wb, key_size); in vb2_load_fw_keyblock() 87 key_data, key_size); in vb2_load_fw_keyblock() 92 rv = vb2_unpack_key(&root_key, key_data, key_size); in vb2_load_fw_keyblock() 159 uint32_t key_size = sd->workbuf_data_key_size; in vb2_load_fw_preamble() local 173 rv = vb2_unpack_key(&data_key, key_data, key_size); in vb2_load_fw_preamble()
|
/external/pigweed/pw_kvs/ |
D | key_value_store_fuzz_test.cc | 64 for (unsigned key_size = 1; key_size < sizeof(value); ++key_size) { in TEST_F() local 67 kvs_.Put(std::string_view(value, key_size), in TEST_F()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | msg.h | 364 char key_size; member 386 upb_map *_upb_map_new(upb_arena *a, size_t key_size, size_t value_size); 442 size_t key_size, void *val, size_t val_size) { in _upb_map_get() argument 444 upb_strview k = _upb_map_tokey(key, key_size); in _upb_map_get() 462 UPB_INLINE bool _upb_map_set(upb_map *map, const void *key, size_t key_size, in _upb_map_set() argument 464 upb_strview strkey = _upb_map_tokey(key, key_size); in _upb_map_set() 474 UPB_INLINE bool _upb_map_delete(upb_map *map, const void *key, size_t key_size) { in _upb_map_delete() argument 475 upb_strview k = _upb_map_tokey(key, key_size); in _upb_map_delete() 491 const void *key, size_t key_size, void *val, in _upb_msg_map_get() argument 495 return _upb_map_get(map, key, key_size, val, val_size); in _upb_msg_map_get() [all …]
|
/external/libsrtp2/crypto/cipher/ |
D | aes_icm_ossl.c | 156 icm->key_size = SRTP_AES_128_KEY_LEN; in srtp_aes_icm_openssl_alloc() 161 icm->key_size = SRTP_AES_192_KEY_LEN; in srtp_aes_icm_openssl_alloc() 166 icm->key_size = SRTP_AES_256_KEY_LEN; in srtp_aes_icm_openssl_alloc() 225 memcpy(&c->counter, key + c->key_size, SRTP_SALT_LEN); in srtp_aes_icm_openssl_context_init() 226 memcpy(&c->offset, key + c->key_size, SRTP_SALT_LEN); in srtp_aes_icm_openssl_context_init() 233 srtp_octet_string_hex_string(key, c->key_size)); in srtp_aes_icm_openssl_context_init() 236 switch (c->key_size) { in srtp_aes_icm_openssl_context_init()
|