Home
last modified time | relevance | path

Searched refs:pubkey_bytes (Results 1 – 9 of 9) sorted by relevance

/src/crypto/openssl/providers/implementations/keymgmt/
H A Dmlx_kmgmt.c225 sub_arg->puboff = slot * key->xinfo->pubkey_bytes; in export_sub()
227 sub_arg->publen = key->minfo->pubkey_bytes; in export_sub()
232 sub_arg->puboff = (1 - ml_kem_slot) * key->minfo->pubkey_bytes; in export_sub()
234 sub_arg->publen = key->xinfo->pubkey_bytes; in export_sub()
265 publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes; in mlx_kem_export()
394 key->minfo->pubkey_bytes, key->xinfo->pubkey_bytes)) in load_keys()
415 size_t pubkey_bytes, prvkey_bytes; in mlx_kem_key_fromdata() local
421 pubkey_bytes = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes; in mlx_kem_key_fromdata()
445 if (publen != 0 && publen != pubkey_bytes) { in mlx_kem_key_fromdata()
495 size_t publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes; in mlx_kem_get_params()
[all …]
H A Dml_kem_kmgmt.c260 pubenc = OPENSSL_malloc(v->pubkey_bytes); in ml_kem_export()
262 || !ossl_ml_kem_encode_public_key(pubenc, v->pubkey_bytes, key)) in ml_kem_export()
310 tmpl, params, OSSL_PKEY_PARAM_PUB_KEY, pubenc, v->pubkey_bytes)) in ml_kem_export()
426 if (publen != 0 && publen != v->pubkey_bytes) { in ml_kem_key_fromdata()
593 p->return_size = v->pubkey_bytes; in ml_kem_get_params()
661 || publen != key->vinfo->pubkey_bytes)) { in ml_kem_set_params()
/src/crypto/openssl/providers/implementations/encode_decode/
H A Dml_kem_codecs.c248 if (publen != ML_COMMON_SPKI_OVERHEAD + (ossl_ssize_t)v->pubkey_bytes in ossl_ml_kem_d2i_PUBKEY()
334 || (p8fmt->pub_length > 0 && p8fmt->pub_length != v->pubkey_bytes)) { in ossl_ml_kem_d2i_PKCS8()
366 pos += v->pubkey_bytes; in ossl_ml_kem_d2i_PKCS8()
418 publen = key->vinfo->pubkey_bytes; in ossl_ml_kem_i2d_pubkey()
473 || (p8fmt->pub_length > 0 && p8fmt->pub_length != v->pubkey_bytes)) { in ossl_ml_kem_i2d_prvkey()
537 || !ossl_ml_kem_encode_public_key(pos, v->pubkey_bytes, key)) { in ossl_ml_kem_i2d_prvkey()
543 pos += v->pubkey_bytes; in ossl_ml_kem_i2d_prvkey()
570 publen = key->vinfo->pubkey_bytes; in ossl_ml_kem_key_to_text()
602 if ((pubenc = OPENSSL_malloc(key->vinfo->pubkey_bytes)) == NULL in ossl_ml_kem_key_to_text()
/src/crypto/openssl/providers/implementations/kem/
H A Dmlx_kem.c123 encap_clen = key->minfo->ctext_bytes + key->xinfo->pubkey_bytes; in mlx_kem_encapsulate()
168 cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes; in mlx_kem_encapsulate()
204 encap_clen = key->xinfo->pubkey_bytes; in mlx_kem_encapsulate()
213 if (encap_clen != key->xinfo->pubkey_bytes) { in mlx_kem_encapsulate()
253 size_t decap_clen = key->minfo->ctext_bytes + key->xinfo->pubkey_bytes; in mlx_kem_decapsulate()
289 cbuf = ctext + ml_kem_slot * key->xinfo->pubkey_bytes; in mlx_kem_decapsulate()
305 decap_clen = key->xinfo->pubkey_bytes; in mlx_kem_decapsulate()
/src/crypto/openssl/test/
H A Dml_kem_internal_test.c129 encoded_public_key = OPENSSL_malloc(v->pubkey_bytes); in sanity_test()
136 if (!ossl_ml_kem_genkey(encoded_public_key, v->pubkey_bytes, in sanity_test()
154 if (!ossl_ml_kem_parse_public_key(encoded_public_key, v->pubkey_bytes, in sanity_test()
H A Dml_kem_evp_extra_test.c271 if (!TEST_size_t_eq(publen, v->pubkey_bytes)) in test_non_derandomised_ml_kem()
/src/crypto/openssl/providers/implementations/include/prov/
H A Dmlx_kem.h22 size_t pubkey_bytes; member
/src/crypto/openssl/crypto/ml_kem/
H A Dml_kem.c1579 out += vinfo->pubkey_bytes; in encode_prvkey()
1610 if (!hash_h(key->pkhash, in, vinfo->pubkey_bytes, mdctx, key) in parse_pubkey()
1641 in += vinfo->pubkey_bytes; in parse_prvkey()
1722 if (!hash_h(key->pkhash, pubenc, vinfo->pubkey_bytes, mdctx, key)) in genkey()
2040 || len != key->vinfo->pubkey_bytes) in ossl_ml_kem_encode_public_key()
2110 if (len != vinfo->pubkey_bytes in ossl_ml_kem_parse_public_key()
2168 if (pubenc != NULL && publen != vinfo->pubkey_bytes) in ossl_ml_kem_genkey()
/src/crypto/openssl/include/crypto/
H A Dml_kem.h140 size_t pubkey_bytes; member