diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-08-04 12:18:51 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-08-04 12:18:51 +1000 |
commit | e5b2cd5899b2631363740a40c76d96fd15d32d1c (patch) | |
tree | 4953c2a16f26c0c890725b7d576f7cb43b1c8ead /doc/internal | |
parent | 37d898df348b87a423133afdbb828383be22fda7 (diff) |
Change the provider implementation of X942kdf to use wpacket to do der encoding of sharedInfo
Added der_writer functions for writing octet string primitives.
Generate OID's for key wrapping algorithms used by X942 KDF.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12554)
Diffstat (limited to 'doc/internal')
-rw-r--r-- | doc/internal/man3/DER_w_bn.pod | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/internal/man3/DER_w_bn.pod b/doc/internal/man3/DER_w_bn.pod index c51223f71a..deea5de346 100644 --- a/doc/internal/man3/DER_w_bn.pod +++ b/doc/internal/man3/DER_w_bn.pod @@ -2,7 +2,8 @@ =head1 NAME -DER_w_boolean, DER_w_ulong, DER_w_bn, DER_w_null +DER_w_boolean, DER_w_ulong, DER_w_bn, DER_w_null, +DER_w_octet_string, DER_w_octet_string_uint32 - internal DER writers for DER primitives =head1 SYNOPSIS @@ -13,6 +14,9 @@ DER_w_boolean, DER_w_ulong, DER_w_bn, DER_w_null int DER_w_ulong(WPACKET *pkt, int tag, unsigned long v); int DER_w_bn(WPACKET *pkt, int tag, const BIGNUM *v); int DER_w_null(WPACKET *pkt, int tag); + int DER_w_octet_string(WPACKET *pkt, int tag, + const unsigned char *data, size_t data_n); + int DER_w_octet_string_uint32(WPACKET *pkt, int tag, uint32_t value); =head1 DESCRIPTION @@ -33,6 +37,12 @@ added. DER_w_null() writes the primitive NULL. +DER_w_octet_string() writes the primitive OCTET STRING using the bytes from +I<data> with a length of I<data_n>. + +DER_w_octet_string_uint32() writes the primitive OCTET STRING using a 32 bit +value in I<value>. + =head1 RETURN VALUES All the functions return 1 on success and 0 on failure. Failure may |