/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | des.c | 512 SWAP( ctx->sk[i ], ctx->sk[30 - i] ); in mbedtls_des_setkey_dec() 513 SWAP( ctx->sk[i + 1], ctx->sk[31 - i] ); in mbedtls_des_setkey_dec() 552 des3_set2key( ctx->sk, sk, key ); in mbedtls_des3_set2key_enc() 553 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_enc() 566 des3_set2key( sk, ctx->sk, key ); in mbedtls_des3_set2key_dec() 567 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_dec() 603 des3_set3key( ctx->sk, sk, key ); in mbedtls_des3_set3key_enc() 604 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set3key_enc() 617 des3_set3key( sk, ctx->sk, key ); in mbedtls_des3_set3key_dec() 618 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set3key_dec() [all …]
|
/optee_os/core/crypto/ |
A D | sm4.c | 163 static void sm4_one_round(uint32_t sk[32], const uint8_t input[16], in sm4_one_round() 178 ulbuf[i + 3], sk[i]); in sm4_one_round() 189 sm4_setkey(ctx->sk, key); in sm4_setkey_enc() 197 sm4_setkey(ctx->sk, key); in sm4_setkey_dec() 200 SWAP(ctx->sk[i], ctx->sk[31 - i]); in sm4_setkey_dec() 209 sm4_one_round(ctx->sk, input, output); in sm4_crypt_ecb() 228 sm4_one_round(ctx->sk, output, output); in sm4_crypt_cbc() 238 sm4_one_round(ctx->sk, input, output); in sm4_crypt_cbc() 259 sm4_one_round(ctx->sk, ctr, ctr); in sm4_crypt_ctr()
|
A D | sm4.h | 16 uint32_t sk[32]; /* SM4 subkeys */ member
|
/optee_os/core/lib/libtomcrypt/src/pk/ed25519/ |
A D | ed25519_set_key.c | 32 int ed25519_set_key(const unsigned char *sk, unsigned long sklen, in ed25519_set_key() argument 38 if (sk != NULL) { in ed25519_set_key() 40 XMEMCPY(key->priv, sk, sizeof(key->priv)); in ed25519_set_key()
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | multi2.c | 123 ulong32 sk[8], dk[2]; in multi2_setup() local 134 LOAD32H(sk[x], key + x*4); in multi2_setup() 138 setup(dk, sk, skey->multi2.uk); in multi2_setup() 140 zeromem(sk, sizeof(sk)); in multi2_setup()
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | des.h | 66 uint32_t sk[32]; /*!< DES subkeys */ member 75 uint32_t sk[96]; /*!< 3DES subkeys */ member
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | des.h | 66 uint32_t sk[32]; /*!< DES subkeys */ member 75 uint32_t sk[96]; /*!< 3DES subkeys */ member
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | des.h | 66 uint32_t sk[32]; /*!< DES subkeys */ member 75 uint32_t sk[96]; /*!< 3DES subkeys */ member
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | des.h | 66 uint32_t sk[32]; /*!< DES subkeys */ member 75 uint32_t sk[96]; /*!< 3DES subkeys */ member
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | des.h | 66 uint32_t sk[32]; /*!< DES subkeys */ member 75 uint32_t sk[96]; /*!< 3DES subkeys */ member
|
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | tweetnacl.c | 313 int tweetnacl_crypto_sk_to_pk(u8 *pk, const u8 *sk) in tweetnacl_crypto_sk_to_pk() argument 317 tweetnacl_crypto_hash(d, sk, 32); in tweetnacl_crypto_sk_to_pk() 328 int tweetnacl_crypto_sign_keypair(prng_state *prng, int wprng, u8 *pk, u8 *sk) in tweetnacl_crypto_sign_keypair() argument 337 if (prng_descriptor[wprng]->read(sk,32, prng) != 32) { in tweetnacl_crypto_sign_keypair() 341 if ((err = tweetnacl_crypto_sk_to_pk(pk, sk)) != CRYPT_OK) { in tweetnacl_crypto_sign_keypair() 386 int tweetnacl_crypto_sign(u8 *sm,u64 *smlen,const u8 *m,u64 mlen,const u8 *sk,const u8 *pk) in tweetnacl_crypto_sign() argument 392 tweetnacl_crypto_hash(d, sk, 32); in tweetnacl_crypto_sign()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_private.h | 337 const unsigned char *sk, const unsigned char *pk); 343 int tweetnacl_crypto_sign_keypair(prng_state *prng, int wprng, unsigned char *pk,unsigned char *sk); 344 int tweetnacl_crypto_sk_to_pk(unsigned char *pk, const unsigned char *sk); 348 typedef int (*sk_to_pk)(unsigned char *pk ,const unsigned char *sk);
|
A D | tomcrypt_pk.h | 354 int ed25519_set_key(const unsigned char *sk, unsigned long sklen,
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 2928 struct tee_cryp_obj_secret *sk = NULL; in syscall_cryp_derive_key() local 2957 sk = so->attr; in syscall_cryp_derive_key() 3051 pt_secret = (uint8_t *)(sk + 1); in syscall_cryp_derive_key() 3052 pt_secret_len = sk->alloc_size; in syscall_cryp_derive_key() 3058 sk->key_size = pt_secret_len; in syscall_cryp_derive_key() 3089 sk->key_size = okm_len; in syscall_cryp_derive_key() 3115 info, info_len, (uint8_t *)(sk + 1), in syscall_cryp_derive_key() 3118 sk->key_size = derived_key_len; in syscall_cryp_derive_key() 3147 sk->key_size = derived_key_len; in syscall_cryp_derive_key() 3158 .out = (uint8_t *)(sk + 1), in syscall_cryp_derive_key() [all …]
|