Home
last modified time | relevance | path

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

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Ddes.c490 SWAP( ctx->sk[i ], ctx->sk[30 - i] ); in mbedtls_des_setkey_dec()
491 SWAP( ctx->sk[i + 1], ctx->sk[31 - i] ); in mbedtls_des_setkey_dec()
530 des3_set2key( ctx->sk, sk, key ); in mbedtls_des3_set2key_enc()
531 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_enc()
544 des3_set2key( sk, ctx->sk, key ); in mbedtls_des3_set2key_dec()
545 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set2key_dec()
581 des3_set3key( ctx->sk, sk, key ); in mbedtls_des3_set3key_enc()
582 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set3key_enc()
595 des3_set3key( sk, ctx->sk, key ); in mbedtls_des3_set3key_dec()
596 mbedtls_platform_zeroize( sk, sizeof( sk ) ); in mbedtls_des3_set3key_dec()
[all …]
/optee_os-3.20.0/core/crypto/
A Dsm4.c178 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()
259 sm4_one_round(ctx->sk, ctr, ctr); in sm4_crypt_ctr()
306 sm4_one_round(ctx_ek->sk, iv, tweak); in sm4_crypt_xts()
313 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
334 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
340 sm4_one_round(ctx->sk, ct, ct); in sm4_crypt_xts()
[all …]
A Dsm4.h16 uint32_t sk[32]; /* SM4 subkeys */ member
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Ddes.h69 uint32_t sk[32]; /*!< DES subkeys */ member
78 uint32_t sk[96]; /*!< 3DES subkeys */ member
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/
A Dmulti2.c116 ulong32 sk[8], dk[2]; in multi2_setup() local
127 LOAD32H(sk[x], key + x*4); in multi2_setup()
131 s_setup(dk, sk, skey->multi2.uk); in multi2_setup()
133 zeromem(sk, sizeof(sk)); in multi2_setup()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dtweetnacl.c310 int tweetnacl_crypto_sk_to_pk(u8 *pk, const u8 *sk) in tweetnacl_crypto_sk_to_pk() argument
314 tweetnacl_crypto_hash(d, sk, 32); in tweetnacl_crypto_sk_to_pk()
325 int tweetnacl_crypto_sign_keypair(prng_state *prng, int wprng, u8 *pk, u8 *sk) in tweetnacl_crypto_sign_keypair() argument
334 if (prng_descriptor[wprng]->read(sk,32, prng) != 32) { in tweetnacl_crypto_sign_keypair()
338 if ((err = tweetnacl_crypto_sk_to_pk(pk, sk)) != CRYPT_OK) { in tweetnacl_crypto_sign_keypair()
383 int tweetnacl_crypto_sign(u8 *sm,u64 *smlen,const u8 *m,u64 mlen,const u8 *sk,const u8 *pk, const u… in tweetnacl_crypto_sign() argument
389 tweetnacl_crypto_hash(d, sk, 32); in tweetnacl_crypto_sign()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h365 const unsigned char *sk,const unsigned char *pk,
373 int tweetnacl_crypto_sign_keypair(prng_state *prng, int wprng, unsigned char *pk,unsigned char *sk);
374 int tweetnacl_crypto_sk_to_pk(unsigned char *pk, const unsigned char *sk);
379 typedef int (*sk_to_pk)(unsigned char *pk ,const unsigned char *sk);
/optee_os-3.20.0/core/tee/
A Dtee_svc_cryp.c3403 sk = so->attr; in syscall_cryp_derive_key()
3497 pt_secret = (uint8_t *)(sk + 1); in syscall_cryp_derive_key()
3498 pt_secret_len = sk->alloc_size; in syscall_cryp_derive_key()
3504 sk->key_size = pt_secret_len; in syscall_cryp_derive_key()
3535 sk->key_size = okm_len; in syscall_cryp_derive_key()
3564 sk->key_size = derived_key_len; in syscall_cryp_derive_key()
3593 sk->key_size = derived_key_len; in syscall_cryp_derive_key()
3604 .out = (uint8_t *)(sk + 1), in syscall_cryp_derive_key()
3656 pt_secret = (uint8_t *)(sk + 1); in syscall_cryp_derive_key()
3657 pt_secret_len = sk->alloc_size; in syscall_cryp_derive_key()
[all …]

Completed in 18 milliseconds