File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @tls/enum" ,
3- "version" : " 0.3.9 " ,
3+ "version" : " 0.4.0 " ,
44 "exports" : " ./src/mod.ts" ,
55 "publish" : {
66 "exclude" : [" dist/" ]
Original file line number Diff line number Diff line change @@ -54,6 +54,23 @@ export class ContentType extends Enum {
5454 * @returns {TLSPlaintext } A TLSPlaintext object created with the specified parameters.
5555 */
5656 tlsPlainText ( fragment : Uint8Array ) : TLSPlaintext ;
57+
58+ /**
59+ * Creates a `TLSInnerPlaintext` instance from content and zero padding.
60+ *
61+ * @param {Uint8Array } content - The content bytes for the `TLSInnerPlaintext` structure.
62+ * @param {number } numZeros - The number of zero bytes to pad the structure.
63+ * @returns {TLSInnerPlaintext } A new `TLSInnerPlaintext` instance.
64+ */
65+ tlsInnerPlaintext ( content : Uint8Array , numZeros : number ) : TLSInnerPlaintext ;
66+
67+ /**
68+ * Creates a `TLSCiphertext` instance from the encrypted record.
69+ *
70+ * @param {Uint8Array } encrypted_record - The encrypted record bytes for the `TLSCiphertext` structure.
71+ * @returns {TLSCiphertext } A new `TLSCiphertext` instance.
72+ */
73+ tlsCiphertext ( encrypted_record : Uint8Array ) : TLSCiphertext ;
5774}
5875
5976/**
You can’t perform that action at this time.
0 commit comments