mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement HKDF support for subtlecrypto.deriveBits
(#34200)
* Implement subtlecrypto.deriveBits with HKDF Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
67ac59b809
commit
cdd0006e3d
7 changed files with 156 additions and 9048 deletions
|
@ -27,6 +27,7 @@ pub enum Handle {
|
|||
Aes192(Vec<u8>),
|
||||
Aes256(Vec<u8>),
|
||||
Pbkdf2(Vec<u8>),
|
||||
Hkdf(Vec<u8>),
|
||||
}
|
||||
|
||||
/// <https://w3c.github.io/webcrypto/#cryptokey-interface>
|
||||
|
@ -148,6 +149,7 @@ impl Handle {
|
|||
Self::Aes192(bytes) => bytes,
|
||||
Self::Aes256(bytes) => bytes,
|
||||
Self::Pbkdf2(bytes) => bytes,
|
||||
Self::Hkdf(bytes) => bytes,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue