Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 9 of 9) sorted by relevance

/system/keymaster/km_openssl/
Dhmac.cpp38 bool HmacSha256::Init(const uint8_t* key, size_t key_len) { in Init() argument
42 key_len_ = key_len; in Init()
43 key_.reset(dup_buffer(key, key_len)); in Init()
Drsa_operation.cpp334 size_t key_len = EVP_PKEY_size(rsa_key_); in SignUndigested() local
340 if (data_.available_read() > key_len) { in SignUndigested()
342 } else if (data_.available_read() < key_len) { in SignUndigested()
343 keymaster_error_t error = zero_pad_left(&zero_padded, key_len, data_); in SignUndigested()
348 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested()
354 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in SignUndigested()
438 size_t key_len = RSA_size(rsa.get()); in VerifyUndigested() local
442 if (data_.available_read() > key_len) in VerifyUndigested()
444 if (key_len != signature.available_read()) in VerifyUndigested()
449 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in VerifyUndigested()
[all …]
/system/keymaster/include/keymaster/key_blob_utils/
Dae.h75 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len);
/system/gatekeeper/
Dgatekeeper.cpp251 uint32_t key_len = 0; in MintAuthToken() local
252 if (GetAuthTokenKey(&auth_token_key, &key_len)) { in MintAuthToken()
253 ComputeSignature(token.hmac, sizeof(token.hmac), auth_token_key, key_len, in MintAuthToken()
/system/bt/stack/hcic/
Dhciblecmds.cc353 void btsnd_hcic_ble_encrypt(uint8_t* key, uint8_t key_len, uint8_t* plain_text, in btsnd_hcic_ble_encrypt() argument
370 if (key_len > HCIC_BLE_ENCRYT_KEY_SIZE) key_len = HCIC_BLE_ENCRYT_KEY_SIZE; in btsnd_hcic_ble_encrypt()
373 ARRAY_TO_STREAM(pp, key, key_len); in btsnd_hcic_ble_encrypt()
374 pp += (HCIC_BLE_ENCRYT_KEY_SIZE - key_len); in btsnd_hcic_ble_encrypt()
/system/sepolicy/tools/
Dcheck_seapp.c777 int key_len = strlen(k->key); in rule_map_new() local
780 l = l + key_len + val_len; in rule_map_new()
792 strncat(new_map->key, k->key, key_len); in rule_map_new()
/system/keymaster/key_blob_utils/
Docb.c716 int ae_init(ae_ctx* ctx, const void* key, int key_len, int nonce_len, int tag_len) { in ae_init() argument
725 key_len = OCB_KEY_LEN; in ae_init()
727 AES_set_encrypt_key((unsigned char*)key, key_len * 8, &ctx->encrypt_key); in ae_init()
731 AES_set_decrypt_key((unsigned char*)key, (int)(key_len * 8), &ctx->decrypt_key); in ae_init()
/system/bt/btif/src/
Dbtif_storage.cc490 static void btif_read_le_key(const uint8_t key_type, const size_t key_len, in btif_read_le_key() argument
501 key_len) == BT_STATUS_SUCCESS) { in btif_read_le_key()
/system/bt/stack/include/
Dhcimsgs.h784 extern void btsnd_hcic_ble_encrypt(uint8_t* key, uint8_t key_len,