@hiveio/dhive 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dhive.d.ts CHANGED
@@ -2951,6 +2951,18 @@ declare module 'dhive/helpers/aes' {
2951
2951
  import { PrivateKey, PublicKey } from 'dhive/crypto';
2952
2952
  export const encrypt: (private_key: PrivateKey, public_key: PublicKey, message: Buffer, nonce?: string) => any;
2953
2953
  export const decrypt: (private_key: PrivateKey, public_key: PublicKey, nonce: any, message: any, checksum: number) => any;
2954
+ /**
2955
+ * This method does not use a checksum, the returned data must be validated some other way.
2956
+ * @arg {string|Buffer} ciphertext - binary format
2957
+ * @return {Buffer} the decrypted message
2958
+ */
2959
+ export const cryptoJsDecrypt: (message: Buffer, tag: any, iv: any) => Buffer;
2960
+ /**
2961
+ * This method does not use a checksum, the returned data must be validated some other way.
2962
+ * @arg {string|Buffer} plaintext - binary format
2963
+ * @return {Buffer} binary
2964
+ */
2965
+ export const cryptoJsEncrypt: (message: Buffer, tag: any, iv: any) => Buffer;
2954
2966
 
2955
2967
  }
2956
2968
  declare module 'dhive/memo' {