equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
394 // see JCA spec |
394 // see JCA spec |
395 protected void engineUpdate(byte b) throws SignatureException { |
395 protected void engineUpdate(byte b) throws SignatureException { |
396 ensureInitialized(); |
396 ensureInitialized(); |
397 switch (type) { |
397 switch (type) { |
398 case T_UPDATE: |
398 case T_UPDATE: |
399 buffer[0] = (byte)b; |
399 buffer[0] = b; |
400 engineUpdate(buffer, 0, 1); |
400 engineUpdate(buffer, 0, 1); |
401 break; |
401 break; |
402 case T_DIGEST: |
402 case T_DIGEST: |
403 md.update(b); |
403 md.update(b); |
404 bytesProcessed++; |
404 bytesProcessed++; |