Struct csrf::AesGcmCsrfProtection [] [src]

pub struct AesGcmCsrfProtection { /* fields omitted */ }

Uses AES-GCM to provide signed, encrypted CSRF tokens and cookies.

Methods

impl AesGcmCsrfProtection
[src]

Trait Implementations

impl CsrfProtection for AesGcmCsrfProtection
[src]

Using scrypt with params n=12, r=8, p=1, generate the key material used for the underlying crypto functions.

Panics

This function may panic if the underlying crypto library fails catastrophically.