Skip to main content

build_authorization_request

Function build_authorization_request 

Source
pub fn build_authorization_request(
    backend: &mut EcdsaBackend,
    aa: &Certificate,
    ea: &Certificate,
    ec_own: &OwnCertificate,
    attributes: CertificateSubjectAttributes,
    now: f64,
    pop: bool,
    algorithm: KeyAlgorithm,
) -> Result<PendingRequest, PkiProtocolError>
Expand description

AuthorizationRequestMessage (pop false) or AuthorizationRequestMessageWithPop (clause 6.2.3.3.1), with privacy (encryptedEcSignature to the EA). A new key pair and hmacKey are generated.