mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 18:49:07 -05:00
93d479252b
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> Closes #21806
20 lines
515 B
Rust
20 lines
515 B
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
//
|
|
// PKCS #3: Diffie-Hellman Key Agreement Standard
|
|
|
|
use der::Sequence;
|
|
use spki::der;
|
|
use spki::der::asn1;
|
|
|
|
// The parameters fields associated with OID dhKeyAgreement
|
|
//
|
|
// DHParameter ::= SEQUENCE {
|
|
// prime INTEGER, -- p
|
|
// base INTEGER, -- g
|
|
// privateValueLength INTEGER OPTIONAL }
|
|
#[derive(Clone, Sequence)]
|
|
pub struct DhParameter {
|
|
pub prime: asn1::Int,
|
|
pub base: asn1::Int,
|
|
pub private_value_length: Option<asn1::Int>,
|
|
}
|