Searched refs:senderNonce (Results 1 - 9 of 9) sorted by relevance

/freebsd-current/crypto/openssl/crypto/cmp/
H A Dcmp_hdr.c63 return hdr->senderNonce;
341 * set random senderNonce
344 * senderNonce present
346 * The senderNonce and recipNonce fields protect the PKIMessage against
347 * replay attacks. The senderNonce will typically be 128 bits of
349 * is copied from the senderNonce of the previous message in the
352 if (!set_random(&hdr->senderNonce, ctx, OSSL_CMP_SENDERNONCE_LENGTH))
355 /* store senderNonce - for cmp with recipNonce in next outgoing msg */
356 if (!OSSL_CMP_CTX_set1_senderNonce(ctx, hdr->senderNonce))
H A Dcmp_vfy.c656 * its recipNonce matches the previous senderNonce stored in the ctx (if any)
659 * learns the senderNonce from the received message,
757 if (ctx->senderNonce != NULL
759 || ASN1_OCTET_STRING_cmp(ctx->senderNonce,
774 * the senderNonce of the previous message in the transaction.
777 if (!ossl_cmp_ctx_set1_recipNonce(ctx, hdr->senderNonce))
H A Dcmp_local.h93 ASN1_OCTET_STRING *senderNonce; /* last nonce sent */ member in struct:ossl_cmp_ctx_st
467 * senderNonce [5] OCTET STRING OPTIONAL,
469 * -- nonces used to provide replay protection, senderNonce
491 ASN1_OCTET_STRING *senderNonce; /* 5 */ member in struct:ossl_cmp_pkiheader_st
H A Dcmp_asn.c429 ASN1_EXP_OPT(OSSL_CMP_PKIHEADER, senderNonce, ASN1_OCTET_STRING, 5),
H A Dcmp_ctx.c216 ASN1_OCTET_STRING_free(ctx->senderNonce);
887 /* Stores the given nonce as the last senderNonce sent out */
895 return ossl_cmp_asn1_octet_string_set1(&ctx->senderNonce, nonce);
H A Dcmp_server.c509 /* start of a new transaction, reset transactionID and senderNonce */
595 (void)ossl_cmp_ctx_set1_recipNonce(ctx, hdr->senderNonce);
/freebsd-current/crypto/openssl/test/
H A Dcmp_hdr_test.c89 if (!TEST_int_eq(ASN1_OCTET_STRING_cmp(fixture->cmp_ctx->senderNonce, sn),
428 fixture->cmp_ctx->senderNonce)))
H A Dcmp_ctx_test.c101 && ctx->senderNonce == NULL
792 DEFINE_SET_TEST(OSSL_CMP, CTX, 1, 1, senderNonce, ASN1_OCTET_STRING)
H A Dcmp_vfy_test.c468 && !ossl_cmp_asn1_octet_string_set1_bytes(&ctx->senderNonce,

Completed in 282 milliseconds