/opt/canhelp/node_modules/@noble/ciphers
NameSizeModeActions
src/-0755rm
aes.d.ts83070644editdlrm
aes.d.ts.map47720644editdlrm
aes.js503500644editdlrm
aes.js.map546380644editdlrm
chacha.d.ts32960644editdlrm
chacha.d.ts.map9430644editdlrm
chacha.js142130644editdlrm
chacha.js.map184060644editdlrm
ff1.d.ts4200644editdlrm
ff1.d.ts.map4520644editdlrm
ff1.js61720644editdlrm
ff1.js.map78510644editdlrm
index.d.ts460644editdlrm
index.d.ts.map1010644editdlrm
index.js11020644editdlrm
index.js.map1730644editdlrm
LICENSE11610644editdlrm
package.json21700644editdlrm
README.md268260644editdlrm
salsa.d.ts13270644editdlrm
salsa.d.ts.map6790644editdlrm
salsa.js112710644editdlrm
salsa.js.map137690644editdlrm
utils.d.ts81160644editdlrm
utils.d.ts.map50240644editdlrm
utils.js134580644editdlrm
utils.js.map115820644editdlrm
webcrypto.d.ts10960644editdlrm
webcrypto.d.ts.map9350644editdlrm
webcrypto.js39170644editdlrm
webcrypto.js.map33330644editdlrm
_arx.d.ts34170644editdlrm
_arx.d.ts.map16530644editdlrm
_arx.js97280644editdlrm
_arx.js.map90970644editdlrm
_poly1305.d.ts19470644editdlrm
_poly1305.d.ts.map9970644editdlrm
_poly1305.js120350644editdlrm
_poly1305.js.map178090644editdlrm
_polyval.d.ts20350644editdlrm
_polyval.d.ts.map16080644editdlrm
_polyval.js79220644editdlrm
_polyval.js.map101640644editdlrm
Edit: /opt/canhelp/node_modules/@noble/ciphers/_poly1305.d.ts (1947B)
/** * Poly1305 ([PDF](https://cr.yp.to/mac/poly1305-20050329.pdf), * [wiki](https://en.wikipedia.org/wiki/Poly1305)) * is a fast and parallel secret-key message-authentication code suitable for * a wide variety of applications. It was standardized in * [RFC 8439](https://www.rfc-editor.org/rfc/rfc8439) and is now used in TLS 1.3. * * Polynomial MACs are not perfect for every situation: * they lack Random Key Robustness: the MAC can be forged, and can't be used in PAKE schemes. * See [invisible salamanders attack](https://keymaterial.net/2020/09/07/invisible-salamanders-in-aes-gcm-siv/). * To combat invisible salamanders, `hash(key)` can be included in ciphertext, * however, this would violate ciphertext indistinguishability: * an attacker would know which key was used - so `HKDF(key, i)` * could be used instead. * * Check out [original website](https://cr.yp.to/mac.html). * Based on Public Domain [poly1305-donna](https://github.com/floodyberry/poly1305-donna). * @module */ import { type IHash2 } from './utils.ts'; /** Poly1305 class. Prefer poly1305() function instead. */ export declare class Poly1305 implements IHash2 { readonly blockLen = 16; readonly outputLen = 16; private buffer; private r; private h; private pad; private pos; protected finished: boolean; constructor(key: Uint8Array); private process; private finalize; update(data: Uint8Array): this; destroy(): void; digestInto(out: Uint8Array): Uint8Array; digest(): Uint8Array; } export type CHash = ReturnType; export declare function wrapConstructorWithKey(hashCons: (key: Uint8Array) => H): { (msg: Uint8Array, key: Uint8Array): Uint8Array; outputLen: number; blockLen: number; create(key: Uint8Array): H; }; /** Poly1305 MAC from RFC 8439. */ export declare const poly1305: CHash; //# sourceMappingURL=_poly1305.d.ts.map