Skip to content

transferwise/crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo provides a list of utility modules for common crypto operations.

AES

  • factory methods to construct an AES-GCM cipher with a 96-bit nonce from the input raw key bytes
  • encrypt & decrypt methods, the output ciphertext is prefixed with the random nonce.

DES

  • factory methods to construct an DES or 3DES cipher from the raw key bytes or hex text
  • encrypt & decrypt methods
  • verify the constructed cipher against the check value

KEK Bundle

Helper class to construct a 3DES key encryption key from a list of components.

RSA

Common RSA operations for plugins to use. Targeting use-cases such as key extraction.