Ensure P256 derived field length

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-16 21:26:20 +01:00
1 parent f244572508
commit bd93961c59
3 files changed
+5 -21

No files matched your search

-11
View File
@@ -31,17 +31,6 @@ extension Data {
return data
}
func suffixOfAtMost(numBytes: Int) -> Data {
if count <= numBytes {
return self
}
return subdata(in: count-numBytes..<count)
}
static func dataFromUrlSafeBase64(_ str: String) -> Data? {
var regularB64 = String(str.map {
if $0 == "_" {