Searched refs:k_opad (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | rpmb.c | 169 unsigned char k_opad[SHA256_BLOCK_SIZE]; in rpmb_hmac() local 184 k_opad[i] = key[i] ^ 0x5c; in rpmb_hmac() 189 k_opad[i] = 0x5c; in rpmb_hmac() 199 sha256_update(&ctx, k_opad, SHA256_BLOCK_SIZE); in rpmb_hmac()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | sha1.c | 374 unsigned char k_opad[64]; in sha1_hmac() local 378 memset (k_opad, 0x5C, 64); in sha1_hmac() 385 k_opad[i] ^= key[i]; in sha1_hmac() 394 sha1_update (&ctx, k_opad, 64); in sha1_hmac() 399 memset (k_opad, 0, 64); in sha1_hmac()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | sa2ul.c | 364 static void prepare_kiopad(u8 *k_ipad, u8 *k_opad, const u8 *key, u16 key_sz) in prepare_kiopad() argument 370 k_opad[i] = key[i] ^ 0x5c; in prepare_kiopad() 376 k_opad[i] = 0x5c; in prepare_kiopad() 420 u8 k_opad[SHA1_BLOCK_SIZE]; in sa_prepare_iopads() local 424 prepare_kiopad(k_ipad, k_opad, key, key_sz); in sa_prepare_iopads() 434 crypto_shash_update(shash, k_opad, block_size); in sa_prepare_iopads()
|