-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from payjoin/bitcoin-add-missing-k256-tests
Generate k256 test vectors on secp
- Loading branch information
Showing
7 changed files
with
19,776 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::aead::Aead; | ||
|
||
/// The implementation of AES-128-GCM | ||
pub struct AesGcm128; | ||
|
||
impl Aead for AesGcm128 { | ||
type AeadImpl = aes_gcm::Aes128Gcm; | ||
|
||
// RFC 9180 §7.3: AES-128-GCM | ||
const AEAD_ID: u16 = 0x0001; | ||
} | ||
|
||
/// The implementation of AES-256-GCM | ||
pub struct AesGcm256 {} | ||
|
||
impl Aead for AesGcm256 { | ||
type AeadImpl = aes_gcm::Aes256Gcm; | ||
|
||
// RFC 9180 §7.3: AES-256-GCM | ||
const AEAD_ID: u16 = 0x0002; | ||
} |
Oops, something went wrong.