Home
last modified time | relevance | path

Searched refs:GCM_ESP_SALT_SIZE (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/crypto/bcm/
H A Dcipher.h42 #define GCM_ESP_SALT_SIZE 4 macro
44 #define MAX_SALT_SIZE GCM_ESP_SALT_SIZE
H A Dcipher.c1331 aead_parms.ret_iv_off = GCM_ESP_SALT_SIZE; in handle_aead_req()
2903 if (keylen < GCM_ESP_SALT_SIZE) in aead_gcm_esp_setkey()
2906 ctx->salt_len = GCM_ESP_SALT_SIZE; in aead_gcm_esp_setkey()
2908 memcpy(ctx->salt, key + keylen - GCM_ESP_SALT_SIZE, GCM_ESP_SALT_SIZE); in aead_gcm_esp_setkey()
2909 keylen -= GCM_ESP_SALT_SIZE; in aead_gcm_esp_setkey()
2912 flow_dump("salt: ", ctx->salt, GCM_ESP_SALT_SIZE); in aead_gcm_esp_setkey()
2935 if (keylen < GCM_ESP_SALT_SIZE) in rfc4543_gcm_esp_setkey()
2938 ctx->salt_len = GCM_ESP_SALT_SIZE; in rfc4543_gcm_esp_setkey()
2940 memcpy(ctx->salt, key + keylen - GCM_ESP_SALT_SIZE, GCM_ESP_SALT_SIZE); in rfc4543_gcm_esp_setkey()
2941 keylen -= GCM_ESP_SALT_SIZE; in rfc4543_gcm_esp_setkey()
[all …]