Skip to content

Commit 01542cd

Browse files
committed
chore: wip
1 parent ebf7074 commit 01542cd

5 files changed

Lines changed: 95 additions & 82 deletions

File tree

.vscode/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ bunx
1010
certutil
1111
changelogen
1212
changelogithub
13+
codebook
1314
codecov
1415
commitlint
1516
commitlintrc

src/aes.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,13 @@ function createDecryptionCipher(key: string, bits: string | Buffer): BlockCipher
849849
return createCipher(key, bits)
850850
}
851851

852-
export const aes = {
852+
export interface AES {
853+
createEncryptionCipher: typeof createEncryptionCipher
854+
createDecryptionCipher: typeof createDecryptionCipher
855+
registerAESAlgorithm: typeof registerAESAlgorithm
856+
}
857+
858+
export const aes: AES = {
853859
createEncryptionCipher,
854860
createDecryptionCipher,
855861
registerAESAlgorithm,

src/asn1.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ interface ExtendedError extends Error {
146146
}
147147

148148
export interface Asn1Object {
149-
name: string
149+
name?: string
150150
tagClass: number
151151
type: number
152152
constructed: boolean
153153
composed?: boolean
154-
captureAsn1: string
154+
captureAsn1?: string
155155
value: any
156156
bitStringContents?: string
157157
original?: Asn1Object
@@ -212,9 +212,8 @@ export const Type = {
212212
* @param type the data type (tag number) for the object.
213213
* @param constructed true if the asn1 object is in constructed form.
214214
* @param value the value for the object, if it is not constructed.
215-
* @param [options] the options to use:
216-
* [bitStringContents] the plain BIT STRING content including padding
217-
* byte.
215+
* @param options the options to use:
216+
* @param options.bitStringContents the plain BIT STRING content including padding byte.
218217
*
219218
* @return the asn1 object.
220219
*/

0 commit comments

Comments
 (0)