Crypto: HMAC-SHA256 cleanup

Add byte[] key method to reduce object churn in NTCP2
Un-deprecate in context
This commit is contained in:
zzz
2018-12-11 12:19:46 +00:00
parent a63d2dccb2
commit fd23b23e56
3 changed files with 30 additions and 19 deletions

View File

@ -746,8 +746,9 @@ public class I2PAppContext {
}
}
/** @deprecated used only by syndie */
@Deprecated
/**
* Un-deprecated in 0.9.38
*/
public HMAC256Generator hmac256() {
if (!_hmac256Initialized)
initializeHMAC256();