Home
last modified time | relevance | path

Searched refs:p8fmt (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dml_dsa_codecs.c407 const ML_COMMON_PKCS8_FMT *p8fmt; in ossl_ml_dsa_d2i_PKCS8() local
437 fmt_slots = ossl_ml_common_pkcs8_fmt_order(v->alg, codec->p8fmt, in ossl_ml_dsa_d2i_PKCS8()
455 for (slot = fmt_slots; (p8fmt = slot->fmt) != NULL; ++slot) { in ossl_ml_dsa_d2i_PKCS8()
456 if (len != (ossl_ssize_t)p8fmt->p8_bytes) in ossl_ml_dsa_d2i_PKCS8()
458 if (p8fmt->p8_shift == sizeof(magic) in ossl_ml_dsa_d2i_PKCS8()
459 || (magic >> (p8fmt->p8_shift * 8)) == p8fmt->p8_magic) { in ossl_ml_dsa_d2i_PKCS8()
460 pos -= p8fmt->p8_shift; in ossl_ml_dsa_d2i_PKCS8()
464 if (p8fmt == NULL in ossl_ml_dsa_d2i_PKCS8()
465 || (p8fmt->seed_length > 0 && p8fmt->seed_length != ML_DSA_SEED_BYTES) in ossl_ml_dsa_d2i_PKCS8()
466 || (p8fmt->priv_length > 0 && p8fmt->priv_length != v->sk_len) in ossl_ml_dsa_d2i_PKCS8()
[all …]
H A Dml_kem_codecs.c276 const ML_COMMON_PKCS8_FMT *p8fmt; in ossl_ml_kem_d2i_PKCS8() local
304 fmt_slots = ossl_ml_common_pkcs8_fmt_order(v->algorithm_name, codec->p8fmt, in ossl_ml_kem_d2i_PKCS8()
322 for (slot = fmt_slots; (p8fmt = slot->fmt) != NULL; ++slot) { in ossl_ml_kem_d2i_PKCS8()
323 if (len != (ossl_ssize_t)p8fmt->p8_bytes) in ossl_ml_kem_d2i_PKCS8()
325 if (p8fmt->p8_shift == sizeof(magic) in ossl_ml_kem_d2i_PKCS8()
326 || (magic >> (p8fmt->p8_shift * 8)) == p8fmt->p8_magic) { in ossl_ml_kem_d2i_PKCS8()
327 pos -= p8fmt->p8_shift; in ossl_ml_kem_d2i_PKCS8()
331 if (p8fmt == NULL in ossl_ml_kem_d2i_PKCS8()
332 || (p8fmt->seed_length > 0 && p8fmt->seed_length != ML_KEM_SEED_BYTES) in ossl_ml_kem_d2i_PKCS8()
333 || (p8fmt->priv_length > 0 && p8fmt->priv_length != v->prvkey_bytes) in ossl_ml_kem_d2i_PKCS8()
[all …]
H A Dml_common_codecs.h86 const ML_COMMON_PKCS8_FMT *p8fmt; member
96 const ML_COMMON_PKCS8_FMT *p8fmt,
H A Dml_common_codecs.c36 const ML_COMMON_PKCS8_FMT *p8fmt, in ossl_ml_common_pkcs8_fmt_order() argument
50 ret[i].fmt = &p8fmt[i]; in ossl_ml_common_pkcs8_fmt_order()