mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-24 15:26:05 +00:00
Ensure P256 derived field length
This commit is contained in:
1 parent
f244572508
commit
bd93961c59
3 files changed
+5
-21
No files matched your search
@@ -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 == "_" {
|
||||
|
||||
Reference in new issue
Block a user