We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3f0dc commit 89db226Copy full SHA for 89db226
1 file changed
Crypto.AES/Public/Expand-Data.ps1
@@ -0,0 +1,12 @@
1
+function Expand-Data {
2
+ param (
3
+ [Parameter(Mandatory = $true, Position = 0 )]
4
+ [byte[]]$Payload
5
+ )
6
+ $size = $Payload.Length - 12 - 1
7
+ @{
8
+ tag = $Payload[0..15]
9
+ data = $Payload[16..$size]
10
+ nonce = $Payload[($size + 1)..$Payload.Length]
11
+ }
12
+}
0 commit comments