Home
last modified time | relevance | path

Searched refs:subkey (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
H A Dxsalsa20_setup.c60 unsigned char subkey[32]; in xsalsa20_setup() local
94 STORE32L(x[sti[i]], subkey + 4 * i); in xsalsa20_setup()
102 LOAD32L(st->input[ 1], subkey + 0); in xsalsa20_setup()
103 LOAD32L(st->input[ 2], subkey + 4); in xsalsa20_setup()
104 LOAD32L(st->input[ 3], subkey + 8); in xsalsa20_setup()
105 LOAD32L(st->input[ 4], subkey + 12); in xsalsa20_setup()
106 LOAD32L(st->input[11], subkey + 16); in xsalsa20_setup()
107 LOAD32L(st->input[12], subkey + 20); in xsalsa20_setup()
108 LOAD32L(st->input[13], subkey + 24); in xsalsa20_setup()
109 LOAD32L(st->input[14], subkey + 28); in xsalsa20_setup()
[all …]
/optee_os/core/crypto/
H A Dsigned_hdr.c131 find_attr(const struct shdr_subkey *subkey, uint32_t id) in find_attr() argument
135 for (n = 0; n < subkey->attr_count; n++) in find_attr()
136 if (subkey->attrs[n].id == id) in find_attr()
137 return subkey->attrs + n; in find_attr()
142 static TEE_Result load_rsa_key(const struct shdr_subkey *subkey, in load_rsa_key() argument
145 const uint8_t *base = (const uint8_t *)subkey; in load_rsa_key()
151 pub_exp = find_attr(subkey, TEE_ATTR_RSA_PUBLIC_EXPONENT); in load_rsa_key()
154 modulus = find_attr(subkey, TEE_ATTR_RSA_MODULUS); in load_rsa_key()
181 static TEE_Result check_attrs(const struct shdr_subkey *subkey, size_t img_size) in check_attrs() argument
183 const struct shdr_subkey_attr *attrs = subkey->attrs; in check_attrs()
[all …]
/optee_os/core/kernel/
H A Dhuk_subkey.c63 uint8_t *subkey, size_t subkey_len) in __huk_subkey_derive() argument
100 res = crypto_mac_final(ctx, subkey, subkey_len); in __huk_subkey_derive()
103 memzero_explicit(subkey, subkey_len); in __huk_subkey_derive()
111 uint8_t *subkey, size_t subkey_len)
/optee_os/core/include/kernel/
H A Dhuk_subkey.h60 uint8_t *subkey, size_t subkey_len);
63 uint8_t *subkey, size_t subkey_len);
/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dkasumi.c31 static u16 FI( u16 in, u16 subkey ) in FI() argument
86 seven ^= (subkey>>9); in FI()
87 nine ^= (subkey&0x1FF); in FI()
/optee_os/core/drivers/crypto/stm32/
H A Dstm32_saes.h66 uint8_t *subkey, size_t subkey_size);
H A Dstm32_saes.c1233 uint8_t *subkey, size_t subkey_size) in stm32_saes_kdf() argument
1272 memcpy(subkey + subkey_index, cmac, in stm32_saes_kdf()
1280 memzero_explicit(subkey, subkey_size); in stm32_saes_kdf()
1288 uint8_t *subkey, size_t subkey_len) in huk_subkey_derive() argument
1300 subkey, subkey_len); in huk_subkey_derive()
1343 input, input_index, subkey, subkey_len); in huk_subkey_derive()
/optee_os/scripts/
H A Dsign_encrypt.py844 if args.subkey:
845 ta_image.add_subkey(args.subkey, args.name)
853 if args.subkey:
854 image.add_subkey(args.subkey, args.name)