Move nodeCryptoFunction to jslib-node (#405)

* Move nodeCryptoFunction to jslib-node

* Fix imports

* Fix tests import
This commit is contained in:
Oscar Hinton 2021-06-09 16:59:45 +02:00 committed by GitHub
parent fdc6f7b1d2
commit d7682cde3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -1,13 +1,12 @@
import * as constants from 'constants';
import * as crypto from 'crypto';
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 { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { Utils } from 'jslib-common/misc/utils';
export class NodeCryptoFunctionService implements CryptoFunctionService {
pbkdf2(password: string | ArrayBuffer, salt: string | ArrayBuffer, algorithm: 'sha256' | 'sha512',

View File

@ -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 { SymmetricCryptoKey } from 'jslib-common/models/domain/symmetricCryptoKey';