first commit

This commit is contained in:
dahyeon committed 2026-02-02 19:14:07 -08:00
commit b6256abbfb
397 files changed
+537630

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/** GCM nonce size in bytes */
export declare const NONCE_SIZE = 12;
/** GCM authentication tag size in bytes */
export declare const TAG_SIZE = 16;
/**
* Encrypt with AES-128-GCM.
* Returns ciphertext + 16-byte auth tag appended.
*/
export declare function aesEncryptGCM(plaintext: Buffer, key: Buffer, nonce: Buffer): Buffer;
/**
* Decrypt AES-128-GCM. Input is ciphertext with 16-byte auth tag appended.
*/
export declare function aesDecryptGCM(ciphertextWithTag: Buffer, key: Buffer, nonce: Buffer): Buffer;
export declare function generateAESKey(): Buffer;
export declare function generateNonce(): Buffer;
//# sourceMappingURL=aes.d.ts.map