Move nodeCryptoFunction to jslib-node (#405)
* Move nodeCryptoFunction to jslib-node * Fix imports * Fix tests import
This commit is contained in:
parent
fdc6f7b1d2
commit
d7682cde3b
|
@ -1,13 +1,12 @@
|
||||||
import * as constants from 'constants';
|
|
||||||
import * as crypto from 'crypto';
|
import * as crypto from 'crypto';
|
||||||
import * as forge from 'node-forge';
|
import * as forge from 'node-forge';
|
||||||
|
|
||||||
import { CryptoFunctionService } from '../abstractions/cryptoFunction.service';
|
import { CryptoFunctionService } from 'jslib-common/abstractions/cryptoFunction.service';
|
||||||
|
|
||||||
import { Utils } from '../misc/utils';
|
import { DecryptParameters } from 'jslib-common/models/domain/decryptParameters';
|
||||||
|
import { SymmetricCryptoKey } from 'jslib-common/models/domain/symmetricCryptoKey';
|
||||||
|
|
||||||
import { DecryptParameters } from '../models/domain/decryptParameters';
|
import { Utils } from 'jslib-common/misc/utils';
|
||||||
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
|
|
||||||
|
|
||||||
export class NodeCryptoFunctionService implements CryptoFunctionService {
|
export class NodeCryptoFunctionService implements CryptoFunctionService {
|
||||||
pbkdf2(password: string | ArrayBuffer, salt: string | ArrayBuffer, algorithm: 'sha256' | 'sha512',
|
pbkdf2(password: string | ArrayBuffer, salt: string | ArrayBuffer, algorithm: 'sha256' | 'sha512',
|
|
@ -1,4 +1,4 @@
|
||||||
import { NodeCryptoFunctionService } from 'jslib-common/services/nodeCryptoFunction.service';
|
import { NodeCryptoFunctionService } from 'jslib-node/services/nodeCryptoFunction.service';
|
||||||
|
|
||||||
import { Utils } from 'jslib-common/misc/utils';
|
import { Utils } from 'jslib-common/misc/utils';
|
||||||
import { SymmetricCryptoKey } from 'jslib-common/models/domain/symmetricCryptoKey';
|
import { SymmetricCryptoKey } from 'jslib-common/models/domain/symmetricCryptoKey';
|
||||||
|
|
Loading…
Reference in New Issue