feat: add aes/sea encrypt/decrypt in gcm and add test cases
This commit is contained in:
parent
6bef350301
commit
6b2775cde1
6 changed files with 373 additions and 5 deletions
14
test_json/gcm_decrypt_aes.json
Normal file
14
test_json/gcm_decrypt_aes.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"testcases": {
|
||||
"b856d760-023d-4b00-bad2-15d2b6da22fe": {
|
||||
"action": "gcm_decrypt",
|
||||
"arguments": {
|
||||
"algorithm": "aes128",
|
||||
"nonce": "4gF+BtR3ku/PUQci",
|
||||
"key": "Xjq/GkpTSWoe3ZH0F+tjrQ==",
|
||||
"ciphertext": "ET3RmvH/Hbuxba63EuPRrw==",
|
||||
"ad": "QUQtRGF0ZW4=",
|
||||
"tag": "Mp0APJb/ZIURRwQlMgNN/w=="
|
||||
} }
|
||||
}
|
||||
}
|
||||
14
test_json/gcm_decrypt_sea.json
Normal file
14
test_json/gcm_decrypt_sea.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"testcases": {
|
||||
"b856d760-023d-4b00-bad2-15d2b6da22fe": {
|
||||
"action": "gcm_decrypt",
|
||||
"arguments": {
|
||||
"algorithm": "sea128",
|
||||
"nonce": "4gF+BtR3ku/PUQci",
|
||||
"key": "Xjq/GkpTSWoe3ZH0F+tjrQ==",
|
||||
"ciphertext": "0cI/Wg4R3URfrVFZ0hw/vg==",
|
||||
"ad": "QUQtRGF0ZW4=",
|
||||
"tag": "ysDdzOSnqLH0MQ+Mkb23gw=="
|
||||
} }
|
||||
}
|
||||
}
|
||||
14
test_json/gcm_encrypt_sea.json
Normal file
14
test_json/gcm_encrypt_sea.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"testcases": {
|
||||
"b856d760-023d-4b00-bad2-15d2b6da22fe": {
|
||||
"action": "gcm_encrypt",
|
||||
"arguments": {
|
||||
"algorithm": "sea128",
|
||||
"nonce": "4gF+BtR3ku/PUQci",
|
||||
"key": "Xjq/GkpTSWoe3ZH0F+tjrQ==",
|
||||
"plaintext": "RGFzIGlzdCBlaW4gVGVzdA==",
|
||||
"ad": "QUQtRGF0ZW4="
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue