File tree Expand file tree Collapse file tree 10 files changed +15
-15
lines changed
Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 77 BlockCiper ,
88 BlockCiperOperation ,
99} from "./block_ciper_operator.ts" ;
10- import { BlockCiperConfig } from "./common.ts" ;
11- import { AESBase } from "./aes_base.ts" ;
10+ import type { BlockCiperConfig } from "./common.ts" ;
11+ import type { AESBase } from "./aes_base.ts" ;
1212
1313// deno-fmt-ignore
1414const SBOX : number [ ] = [
Original file line number Diff line number Diff line change 1- import { AESBase } from "./aes_base.ts" ;
2- import { BlockCiperConfig } from "./common.ts" ;
1+ import type { AESBase } from "./aes_base.ts" ;
2+ import type { BlockCiperConfig } from "./common.ts" ;
33
44function base64 ( m : Uint8Array ) {
55 return btoa ( String . fromCharCode . apply ( null , [ ...m ] ) ) . replace ( / = / g, "" ) ;
Original file line number Diff line number Diff line change 11import { xor } from "./../helper.ts" ;
2- import { BlockCiperConfig } from "./common.ts" ;
2+ import type { BlockCiperConfig } from "./common.ts" ;
33
44export abstract class BlockCiper {
55 abstract encrypt ( m : Uint8Array ) : Uint8Array ;
Original file line number Diff line number Diff line change 11import { RawBinary } from "../binary.ts" ;
2- import { AESBase } from "./aes_base.ts" ;
2+ import type { AESBase } from "./aes_base.ts" ;
33import { WebCryptoAES } from "./aes_wc.ts" ;
44import { PureAES } from "./aes_js.ts" ;
5- import { AESOption } from "./common.ts" ;
5+ import type { AESOption } from "./common.ts" ;
66
77function computeMessage ( m : Uint8Array | string ) {
88 return typeof m === "string" ? new TextEncoder ( ) . encode ( m ) : m ;
Original file line number Diff line number Diff line change 1- import { RSAKeyParams } from "./common.ts" ;
1+ import type { RSAKeyParams } from "./common.ts" ;
22import { bignum_to_byte } from "../helper.ts" ;
33import { encode } from "./../../src/utility/encode.ts" ;
44
Original file line number Diff line number Diff line change 11import { encode } from "./../../src/utility/encode.ts" ;
2- import { JSONWebKey , RSAKeyParams } from "./common.ts" ;
2+ import type { JSONWebKey , RSAKeyParams } from "./common.ts" ;
33import { get_key_size , base64_to_binary } from "../helper.ts" ;
44import { ber_decode , ber_simple } from "./basic_encoding_rule.ts" ;
55import { os2ip } from "./primitives.ts" ;
Original file line number Diff line number Diff line change 1- import { RSAOption , RSASignOption , JSONWebKey } from "./common.ts" ;
1+ import type { RSAOption , RSASignOption , JSONWebKey } from "./common.ts" ;
22import { WebCryptoRSA } from "./rsa_wc.ts" ;
33import { PureRSA } from "./rsa_js.ts" ;
44import { RawBinary } from "../binary.ts" ;
Original file line number Diff line number Diff line change 77 rsa_pkcs1_sign ,
88} from "./rsa_internal.ts" ;
99import { RawBinary } from "./../binary.ts" ;
10- import { RSAOption , RSASignOption } from "./common.ts" ;
10+ import type { RSAOption , RSASignOption } from "./common.ts" ;
1111import { createHash } from "../hash.ts" ;
12- import { RSAKey } from "./rsa_key.ts" ;
12+ import type { RSAKey } from "./rsa_key.ts" ;
1313
1414export class PureRSA {
1515 static async encrypt ( key : RSAKey , message : Uint8Array , options : RSAOption ) {
Original file line number Diff line number Diff line change 1- import { RSAKeyParams , JSONWebKey } from "./common.ts" ;
1+ import type { RSAKeyParams , JSONWebKey } from "./common.ts" ;
22import { encode } from "./../../src/utility/encode.ts" ;
33import {
44 rsa_export_pkcs8_private ,
Original file line number Diff line number Diff line change 1- import { RSAOption } from "./common.ts" ;
2- import { RSAKey } from "./rsa_key.ts" ;
1+ import type { RSAOption } from "./common.ts" ;
2+ import type { RSAKey } from "./rsa_key.ts" ;
33
44function big_base64 ( m ?: bigint ) {
55 if ( m === undefined ) return undefined ;
You can’t perform that action at this time.
0 commit comments