Home
last modified time | relevance | path

Searched refs:key_bytes (Results 1 - 8 of 8) sorted by relevance

/third_party/mbedtls/programs/psa/
H A Dhmac_demo.c71 const unsigned char key_bytes[32] = { 0 }; variable
110 /* PSA_MAC_LENGTH(PSA_KEY_TYPE_HMAC, 8 * sizeof( key_bytes ), alg) in hmac_demo()
120 psa_set_key_bits(&attributes, 8 * sizeof(key_bytes)); // optional in hmac_demo()
123 key_bytes, sizeof(key_bytes), &key); in hmac_demo()
H A Daead_demo.c94 const unsigned char key_bytes[32] = { 0x2a }; variable
168 PSA_CHECK(psa_import_key(&attributes, key_bytes, key_bits / 8, key)); in aead_prepare()
/third_party/mbedtls/programs/hash/
H A Dmd_hmac_demo.c69 const unsigned char key_bytes[32] = { 0 }; variable
116 CHK(mbedtls_md_hmac_starts(&ctx, key_bytes, sizeof(key_bytes))); in hmac_demo()
/third_party/libwebsockets/lib/tls/mbedtls/
H A Dlws-genec.c82 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
83 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes || in lws_genec_keypair_import()
84 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes) in lws_genec_keypair_import()
294 el[n].len = curve->key_bytes; in lws_genecdh_new_keypair()
295 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdh_new_keypair()
300 curve->key_bytes)) in lws_genecdh_new_keypair()
368 el[n].len = curve->key_bytes; in lws_genecdsa_new_keypair()
369 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdsa_new_keypair()
/third_party/libwebsockets/lib/tls/openssl/
H A Dlws-genec.c237 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
238 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes || in lws_genec_keypair_import()
239 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes) in lws_genec_keypair_import()
426 el[n].len = curve->key_bytes; in lws_genec_new_keypair()
427 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genec_new_keypair()
/third_party/mbedtls/programs/cipher/
H A Dcipher_aead_demo.c91 const unsigned char key_bytes[32] = { 0x2a }; variable
157 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-genec.h63 uint16_t key_bytes; member
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dcms.rs377 let key_bytes = include_bytes!("../test/key.pem"); in cms_sign_verify_generic_helper()
378 let key = PKey::private_key_from_pem(key_bytes).expect("failed to load key.pem"); in cms_sign_verify_generic_helper()

Completed in 5 milliseconds